def resolved_task(cls, task):
        """Task instance representing 'task', if any"""
        for t in cls.tasks:
            if t is task or t.execute is task:
                return t
def resolved_task ( cls , task ) : for t in cls . tasks : if t is task or t . execute is task : return t
Task instance representing 'task', if any