def unregister_module(self, module):
if module not in self._namespaces.values():<EOL><INDENT>raise NoRegisteredError("<STR_LIT>".format(module))<EOL><DEDENT>for ns, mod in list(self._namespaces.items()):<EOL><INDENT>if mod == module:<EOL><INDENT>self.unregister_namespace(ns)<EOL><DEDENT><DEDENT>
Unregister a module.

:param module: must be a string or a module object to unregistered
:type module: str