code: def _negate_fn(
      fn: Callable[["Message"], Optional[bool]]
  ) -> Callable[["Message"], bool]:
      # typed version of lambda msg: not fn(msg)
      def negated_fn(msg: "Message") -> bool:
          return not fn(msg)
  
      return negated_fn
  
file_path: pyro/pyro/poutine/block_messenger.py
imports: from functools import partial
  from typing import TYPE_CHECKING, Callable, List, Optional
  from pyro.poutine.messenger import Messenger
label_desc: Use image node_id 3 for calling a global function with example usage: _negate_fn(fn) and returns: negated_fn, unknown