code: def make_partial(fn, *args, **kwargs):
      """Returns a new function with single argument by freezing other arguments
      of :attr:`fn`.
      """
  
      def _new_fn(data):
          return fn(data, *args, **kwargs)
  
      return _new_fn
  
imports: import six
  import tensorflow
  import numpy
  from texar.tf.utils import utils
label_desc: Use image node_id 6 for calling a global function with example usage: make_partial(fn) and returns: _new_fn, fn