code: def get_task_workers(self, task_name=None, json_obj=None):
          
          if task_name is None and json_obj is None:
              raise ValueError('Either task_name or json_obj should be provided')
  
          if json_obj is None:
              json_obj = self.get_task_detail2(task_name)
          return WorkerDetail2.extract_from_json(json_obj, client=self._client, parent=self)
docs: Get workers from task
          :param task_name: task name
          :param json_obj: json object parsed from get_task_detail2
          :return: list of workers
  
          .. seealso:: :class:`odps.models.Worker`