def METHOD_NAME(self, module: ModuleType) -> None:
    ''' Add a module associated with a Document.
    .. note::
        This method will install the module in ``sys.modules``
    Args:
        module (Module) : a module to install for the configured Document
    Returns:
        None
    '''
    if module.__name__ in sys.modules:
        raise RuntimeError(f"Add called already-added module {module.__name__!r} for {self._document()!r}")
    sys.modules[module.__name__] = module
    self._modules.append(module)