class_docstr: A helper ContextManager decorating a method with a custom function.
class_docstr_tok: ["A","helper","ContextManager","decorating","a","method","with","a","custom","function","."]
code: def __exit__(self, type, value, traceback):
      if self.patched_by_me:
          # Restore original function
          setattr(self.classx, self.method_name, self.original_method)
  
imports: import functools
label_desc: Use image node_id 3 for calling the ContextMethodDecorator obj's underlying member method code with example usage: obj.__exit__(type, value, traceback) without return types