code: def load_models(module):
      
      modules = _import_submodules(module)
      return {m for module in modules for m in filter(
          _check_model, (getattr(module, name) for name in dir(module))
      )}
docs: Load models from given module.