code: def __init__(self, when=None, result=None):
      if when is not None:
          self.when = when
      if result is not None:
          self.result = result
      if not hasattr(self, "when") or (
          not isinstance(self.when, dict) and not callable(self.when)
      ):
          raise ValueError(
              "Responder attr 'when' must be dict or function."
          )
      if not hasattr(self, "result") or (
          not isinstance(self.result, dict)
          and not callable(self.result)
      ):
          raise ValueError(
              "Responder attr 'result' must be dict or function."
          )
  
label_desc: Use image node_id 1 to create a new Responder object  with example: obj = Responder(when, result)