def install(self, goal=None, first=False, replace=False, before=None, after=None):
    goal = Goal.by_name(goal or self.name)
    goal.install(self, first, replace, before, after)
    return goal
Install the task in the specified goal (or a new goal with the same name as the task).
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/goal/task_registrar.py/TaskRegistrar.install