code: def from_task(cls, task):
          
          target = cls(name=task.get_name(),
                       params=task.get_param_string())
  
          return target
docs: Create a new target representing a task and its parameters
  
          Args:
              task: Task instance to create target for; the task class has to inherit
                  from :class:`ozelot.tasks.TaskBase`.
  
          Returns:
              ozelot.tasks.ORMTarget: a new target instance