Frame legislation to ensure basic rights to gig workers: CPI (M) leader