code: def invert(s: "Stream[bool]") -> "Stream[bool]":
      """Inverts the truth value of the given stream.
  
      Parameters
      ----------
      s: `Stream[bool]`
          A boolean stream.
  
      Returns
      -------
      `Stream[bool]`
          An inverted stream of `s`.
      """
      return s.apply(lambda x: not x).astype("bool")
  
label_desc: Use image node_id 1 for calling a global function with example usage: invert(s) and returns: s