class_docstr: Wrapper for an agent running on a Worker.
class_docstr_tok: ["Wrapper","for","an","agent","running","on","a","Worker","."]
code: def __init__(
      self,
      task_name,
      world_name,
      agents,
      is_overworld=False,
      world_type=None,
  ):
      self.task_name = task_name
      self.world_name = world_name
      self.agents = agents
      self.is_overworld = (
          is_overworld  # (bool): overworld or task world
      )
      self.world_type = (
          world_type  # name of the task world returned by the overworld
      )
  
      self.future = None
      self.world = None
  
imports: import importlib
  import math
  import re
  from enum import Enum
label_desc: Use image node_id 1 to create a new TaskState object  with example: obj = TaskState(task_name, world_name, agents, is_overworld, world_type)