def _gorg(cls):
assert isinstance(cls, GenericMeta)<EOL>if hasattr(cls, '<STR_LIT>'):<EOL><INDENT>return cls._gorg<EOL><DEDENT>while cls.__origin__ is not None:<EOL><INDENT>cls = cls.__origin__<EOL><DEDENT>return cls<EOL>
This function exists for compatibility with old typing versions.