def METHOD_NAME(self, resources=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE):
    if resources is None:
        resources = self.project.get_python_files()
    changes = change.ChangeSet("Using function <%s>" % self.pyfunction.get_name())
    if self.resource in resources:
        newresources = list(resources)
        newresources.remove(self.resource)
    for c in self._restructure(newresources, task_handle).changes:
        changes.add_change(c)
    if self.resource in resources:
        for c in self._restructure(
            [self.resource], task_handle, others=False
        ).changes:
            changes.add_change(c)
    return changes