class_docstr: Decorator pattern. It simply iterates the method of its member as many times as needed.
  It thus extends any class to apply its methods to a list of arguments.
class_docstr_tok: ["Decorator","pattern",".","It","simply","iterates","the","method","of","its","member","as","many","times","as","needed",".","It","thus","extends","any","class","to","apply","its","methods","to","a","list","of","arguments","."]
code: def __getattr__(self, item):
      if item in [x for x in dir(SmartState) if not x.startswith("__")]:
  
          def wrapper(*args, **kwargs):
              return self.delegate(item, *args, **kwargs)
  
          return wrapper
      else:
          return self.__getattribute__(item)
  
file_path: shapash/shapash/explainer/multi_decorator.py
imports: from shapash.explainer.smart_state import SmartState
label_desc: Use image node_id 2 for calling the MultiDecorator obj's underlying member method code with example usage: obj.__getattr__(item) and returns: wrapper, self, self