code: def _init_promise(self, values):
      # type: (Promise[Collection]) -> None
      if values.is_fulfilled:
          values = values._value()
      elif values.is_rejected:
          self._reject(values._reason())
          return
  
      self.promise._is_async_guaranteed = True
      values._then(self._init, self._reject)
      return
  
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 3 for calling the PromiseList obj's underlying member method code with example usage: obj._init_promise(values) without return types