code: def proxy_methods(cls):
      for name in cls.PROXYED_METHODS:
          if hasattr(cls, name):
              setattr(cls, name, proxy_method(cls, name))
      return cls
  
imports: import functools
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 2 for calling a global function with example usage: proxy_methods(cls) and returns: cls