Return type:
         WorkerGroup
abstract run(role='default')
  Runs the agent, retrying the worker group on failures up to
  "max_restarts".

  Returns:
     The result of the execution, containing the return values or
     failure details for each worker mapped by the worker's global
     rank.

  Raises:
     **Exception - any other failures NOT related to worker
     process** --

  Return type:
     *RunResult*

class torch.distributed.elastic.agent.server.WorkerSpec(role, local_world_size, rdzv_handler, fn=None, entrypoint=None, args=(), max_restarts=3, monitor_interval=30.0, master_port=None, master_addr=None, local_addr=None, redirects=Std.NONE, tee=Std.NONE)
Contains blueprint information about a particular type of worker.
   For a given role, there must only exist a single worker spec.
   Worker spec is expected to be homogenous across all nodes
   (machine), that is each node runs the same number of workers for a
   particular spec.