class_docstr: Base class for method decorators which can be used to replace methods pass to replace_method() with wrapped versions.
code: def __init__(self, meth: Callable) -> None:
      self.meth = meth
  
file_path: MONAI/monai/utils/decorators.py
imports: from __future__ import annotations
  from functools import wraps
  from typing import Callable, Generator
label_desc: Use image node_id 1 to create a new MethodReplacer object  with example: obj = MethodReplacer(meth)