def _gorg(a):
 assert isinstance(a, GenericMeta)
 while (a.__origin__ is not None):
  a = a.__origin__
 return a

def _gorg ( a ) : assert isinstance ( a , GenericMeta ) while ( a . __origin__ is not None ) : a = a . __origin__ return a
return the farthest origin of a generic class .