code: def get_origin(tp):
      if isinstance(tp, GenericTypeMeta) or sys.version_info[:2] < (
          3,
          7,
      ):
          result = getattr(tp, "__origin__", None)
      else:
          result = typing_extensions.get_origin(tp)
      return tp if result is None else result
  
imports: import functools
  import sys
  import typing
  import weakref
  import typing_extensions
  from multipledispatch.variadic import Variadic
  from multipledispatch.variadic import isvariadic
label_desc: Use image node_id 13 for calling a global function with example usage: get_origin(tp) and returns: unknown