code: def _promise_rejected(self, reason):
      # type: (Exception) -> bool
      if self.is_resolved:
          return False
      # assert not self.is_resolved
      # assert isinstance(self._values, Iterable)
      self._total_resolved += 1
      self._reject(reason)
      return True
  
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 7 for calling the PromiseList obj's underlying member method code with example usage: obj._promise_rejected(reason) and returns: True, False