code: def __init__(self, values, promise_class):
      # type: (Union[Collection, Promise[Collection]], Type[Promise]) -> None
      self._promise_class = promise_class
      self.promise = self._promise_class()
  
      self._length = 0
      self._total_resolved = 0
      self._values = None  # type: Optional[Collection]
      Promise = self._promise_class
      if Promise.is_thenable(values):
          values_as_promise = Promise._try_convert_to_promise(
              values
          )._target()  # type: ignore
          self._init_promise(values_as_promise)
      else:
          self._init(values)
  
file_path: wandb/wandb/vendor/promise-2.3.0/wandb_promise/promise_list.py
imports: from functools import partial
label_desc: Use image node_id 1 to create a new PromiseList object from inherited base classes: object with example: obj = PromiseList(values, promise_class)