code: def _set_module_names_for_sphinx(modules: List, new_name: str):
      
      for obj in modules:
          obj.__module__ = new_name
docs: Trick sphinx into displaying the desired module in these objects' documentation.