code: def is_mod_class(mod, cls):
      
      return inspect.isclass(cls) and inspect.getmodule(cls) == mod
docs: Checks if a class in a module was declared in that module.
  
      Args:
          mod: the module
          cls: the class