docstr: Restore original methods so classes go back to their initial state.
docstr_tok: ["Restore","original","methods","so","classes","go","back","to","their","initial","state","."]
code: def _restore(self):
      """Restore original methods so classes go back to their initial state."""
      for cls in self.orig:
          for method in self.orig[cls]:
              setattr(cls, method, self.orig[cls][method])
  
file_path: pytorch-lightning/src/lightning/app/utilities/tracer.py
imports: import functools
  import inspect
  import runpy
  import sys
  import time
  from pathlib import Path
  from typing import Any, Optional
label_desc: Use image node_id 4 for calling the Tracer obj's underlying member method code with example usage: obj._restore() without return types