code: def get_mesos_task(task_name):
      
      tasks = get_mesos_tasks()
  
      if tasks is not None:
          for task in tasks:
              if task['name'] == task_name:
                  return task
      return None
docs: Get a mesos task with a specific task name