class_docstr: Helper class for tracking the status of many in-flight actor tasks.
class_docstr_tok: ["Helper","class","for","tracking","the","status","of","many","in-flight","actor","tasks","."]
code: def add(self, worker, all_obj_refs):
      if isinstance(all_obj_refs, list):
          obj_ref = all_obj_refs[0]
      else:
          obj_ref = all_obj_refs
      self._tasks[obj_ref] = worker
      self._objects[obj_ref] = all_obj_refs
  
file_path: ray/rllib/utils/actors.py
imports: from collections import defaultdict, deque
  import logging
  import platform
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Type
  import ray
  from ray.actor import ActorClass, ActorHandle
label_desc: Use image node_id 2 for calling the TaskPool obj's underlying member method code with example usage: obj.add(worker, all_obj_refs) without return types