class_docstr: Patch a submodule attribute of an object, by keeping all other submodules intact at all levels.
  
  Example::
  
      >>> import importlib
      >>> from datasets.load import dataset_module_factory
      >>> from datasets.streaming import patch_submodule, xjoin
      >>>
      >>> dataset_module = dataset_module_factory("snli")
      >>> snli_module = importlib.import_module(dataset_module.module_path)
      >>> patcher = patch_submodule(snli_module, "os.path.join", xjoin)
      >>> patcher.start()
      >>> assert snli_module.os.path.join is xjoin
docstr: Stop an active patch.
docstr_tok: ["Stop","an","active","patch","."]
code: def stop(self):
      """Stop an active patch."""
      try:
          self._active_patches.remove(self)
      except ValueError:
          # If the patch hasn't been started this will fail
          return None
  
      return self.__exit__()
  
file_path: datasets/src/datasets/utils/patching.py
imports: from importlib import import_module
  from .logging import get_logger
label_desc: Use image node_id 5 for calling the patch_submodule obj's underlying member method code with example usage: obj.stop() and returns: self, None