code: def _make_method(method_type, connection, class_name, name, doc):
      if name == "__call__":
  
          def __call__(_self, *args, **kwargs):
              return fwd_request(_self, OP_CALL, *args, **kwargs)
  
          __call__.__doc__ = doc
          return __call__
  
      def method(_self, *args, **kwargs):
          return fwd_request(_self, OP_CALLATTR, name, *args, **kwargs)
  
      def static_method(connection, class_name, name, *args, **kwargs):
          return connection.stub_request(
              None,
              OP_CALLONCLASS,
              class_name,
              name,
              True,
              *args,
              **kwargs,
          )
  
      def class_method(
          connection, class_name, name, cls, *args, **kwargs
      ):
          return connection.stub_request(
              None,
              OP_CALLONCLASS,
              class_name,
              name,
              False,
              *args,
              **kwargs,
          )
  
      if method_type == NORMAL_METHOD:
          m = method
          m.__doc__ = doc
          m.__name__ = name
          return m
      if method_type == STATIC_METHOD:
          m = functools.partial(
              static_method, connection, class_name, name
          )
          m.__doc__ = doc
          m.__name__ = name
          m = staticmethod(m)
          return m
      if method_type == CLASS_METHOD:
          m = functools.partial(
              class_method, connection, class_name, name
          )
          m.__doc__ = doc
          m.__name__ = name
          m = classmethod(m)
          return m
  
imports: import functools
  import pickle
  from .consts import OP_GETATTR, OP_SETATTR, OP_DELATTR, OP_CALL, OP_CALLATTR, OP_CALLONCLASS, OP_DEL, OP_REPR, OP_STR, OP_HASH, OP_PICKLE, OP_DIR, OP_INIT
label_desc: Use image node_id 3 for calling a global function with example usage: _make_method(method_type, connection, class_name, name, doc) and returns: __call__, fwd_request, connection, connection, m, m, m, fwd_request