code: def add_to_loaded_modules(self, modules):
          
          modules = util.return_set(modules)
          for module in modules:
              if not isinstance(module, str):
                  module = module.__name__
              self.loaded_modules.add(module)
docs: Manually add in `modules` to be tracked by the module manager.
  
          `modules` may be a single object or an iterable.