code: def get_args(tp):
      if isinstance(tp, (GenericTypeMeta, type)) or sys.version_info[
          :2
      ] < (3, 7):
          result = getattr(tp, "__args__", None)
      else:
          result = typing_extensions.get_args(tp)
      return () 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 12 for calling a global function with example usage: get_args(tp) and returns: unknown