code: def make_partial(cls):
      op_module = importlib.import_module(cls.__op__.__module__)
      op = getattr(op_module, cls.__op__.__name__)
      cls.__category__ = getattr(cls, "__category__", None) or "op"
  
      def partial_apply(self, *args, **kwargs):
          kwargs_ = self.__dict__.copy()
          kwargs_.update(kwargs)
          return op(*args, **kwargs_)
  
      if getattr(
          cls, "__append_doc__", True
      ):  # XXX should default to True?
          if sys.version_info[0] > 2:
              cls.__doc__ = "Wrapper for `{}` OP".format(op.__name__)
              cls.__init__.__doc__ = op.__doc__
              cls.__call__ = partial_apply
              cls.__call__.__doc__ = op.__doc__
          else:
              # XXX work around for python 2
              partial_apply.__doc__ = op.__doc__
              cls.__call__ = partial_apply
      return cls
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import importlib
  import os
  import sys
  import yaml
  import collections
  from .config.schema import SchemaDict, SharedConfig, extract_schema
  from .config.yaml_helpers import serializable
label_desc: Use image node_id 7 for calling a global function with example usage: make_partial(cls) and returns: cls, op