def METHOD_NAME(self, resources, task_handle, others=True):
    pattern = self._make_pattern()
    goal = self._make_goal(import_=others)
    imports = None
    if others:
        imports = ["import %s" % self._module_name()]
    body_region = sourceutils.get_body_region(self.pyfunction)
    args_value = {"skip": (self.resource, body_region)}
    args = {"": args_value}
    restructuring = restructure.Restructure(
        self.project, pattern, goal, args=args, imports=imports
    )
    return restructuring.get_changes(resources=resources, task_handle=task_handle)