code: def get_mod(cls):
  
      '''Returns the string identifying the module that cls is defined in.
      '''
      if isinstance(cls, (type, types.FunctionType)):
          ret = cls.__module__
      else:
          ret = cls.__class__.__module__
      return ref get_mod(cls):
  
      '''Returns the string identifying the module that cls is defined in.
      '''
      if isinstance(cls, (type, types.FunctionType)):
          ret = cls.__module__
      else:
          ret = cls.__class__.__module__
      return ret
docs: Returns the string identifying the module that cls is defined in.