class_docstr: Base class for method decorators which can be used to replace methods pass to replace_method() with wrapped versions.
docstr: Return a new method to replace `meth` in the instantiated object, or `meth` to do nothing.
docstr_tok: ["Return","a","new","method","to","replace","`","meth","`","in","the","instantiated","object",",","or","`","meth","`","to","do","nothing","."]
code: def replace_method(self, meth):
      """
      Return a new method to replace `meth` in the instantiated object, or `meth` to do nothing.
      """
      return 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 2 for calling the MethodReplacer obj's underlying member method code with example usage: obj.replace_method(meth) and returns: meth