code: def _gorg(cls):
      """This function exists for compatibility with old typing versions."""
      assert isinstance(cls, GenericMeta)
      if hasattr(cls, "_gorg"):
          return cls._gorg
      while cls.__origin__ is not None:
          cls = cls.__origin__
      return cls
  
imports: import abc
  import collections
  import collections.abc
  import operator
  import sys
  import types
  import typing
label_desc: Use image node_id 5 for calling a global function with example usage: _gorg(cls) and returns: cls, cls