def add_transform_task(self, transformation, params):
if not isinstance(self, filestack.models.Transform):<EOL><INDENT>instance = filestack.models.Transform(apikey=self.apikey, security=self.security, handle=self.handle)<EOL><DEDENT>else:<EOL><INDENT>instance = self<EOL><DEDENT>params.pop('<STR_LIT>')<EOL>params = {k: v for k, v in params.items() if v is not None}<EOL>transformation_url = utils.return_transform_task(transformation, params)<EOL>instance._transformation_tasks.append(transformation_url)<EOL>return instance<EOL>
Adds a transform task to the current instance and returns it

*returns* Filestack.Transform