code: def _check(maybe_node):
      if not isinstance(maybe_node, DataNode):
          raise TypeError(
              f'Expected outputs of type compatible with "DataNode". '
              f'Received output type with name "{type(maybe_node).__name__}" '
              f"that does not match."
          )
  
imports: from __future__ import annotations
  import sys
  from ._utils.hacks import not_iterable
label_desc: Use image node_id 2 for calling a global function with example usage: _check(maybe_node) without return types