code: def is_forward_ref(tp):
      """Returns true if `tp` is a typing forward reference."""
      if hasattr(typing, "ForwardRef"):
          return isinstance(tp, typing.ForwardRef)
      elif hasattr(typing, "_ForwardRef"):
          return isinstance(
              tp, typing._ForwardRef
          )  # pylint: disable=protected-access
      else:
          return False
  
imports: import collections.abc
  import typing
label_desc: Use image node_id 5 for calling a global function with example usage: is_forward_ref(tp) and returns: isinstance, isinstance, False