def METHOD_NAME(self, submodule_name: str) -> None:
    name_full = self._module_name + "." + submodule_name
    if self._module is None:
        raise Exception("Module not registered, cannot register a submodule!")
    # Unregister.
    submodule = self._submodules.pop(submodule_name, None)
    if submodule is None:
        raise Exception("Module \"{:s}\" not registered!".format(submodule_name))
    delattr(self._module, submodule_name)
    del sys.modules[name_full]