class_docstr: A context manager to monkeypatch classes.
code: def __exit__(
      self, exc_type: Any, exc_value: Any, traceback: Any
  ) -> None:
      for class_string, replacement in self._mapping.items():
          _, class_name = class_string.rsplit(".", 1)
          setattr(
              self._modules[class_string],
              class_name,
              self._originals[class_string],
          )
  
file_path: pytorch-lightning/src/lightning/fabric/plugins/precision/utils.py
imports: from typing import Any, Mapping, Type, Union
  import torch
  from torch import Tensor
label_desc: Use image node_id 3 for calling the _ClassReplacementContextManager obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) without return types