class_docstr: A context manager to monkeypatch classes.
code: def __enter__(self) -> None:
      for class_string, replacement in self._mapping.items():
          _, class_name = class_string.rsplit(".", 1)
          setattr(self._modules[class_string], class_name, replacement)
  
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 2 for calling the _ClassReplacementContextManager obj's underlying member method code with example usage: obj.__enter__() without return types