def _type(self):
    if self._type:
        return self._type
    if self._app:
        app = self._app
    else:
        try:
            app = self.tasks[0].type.app
        except (IndexError, __HOLE__):
            app = self.body.type.app
    return app.tasks['celery.chord']
dataset/ETHPy150Open Impactstory/total-impact-webapp/core_tasks.py/_type