code: def make_chained_transformation(tran_fns, *args, **kwargs):
      """Returns a dataset transformation function that applies a list of
      transformations sequentially.
  
      Args:
          tran_fns (list): A list of dataset transformation function.
          *args: Extra arguments for each of the transformation function.
          **kwargs: Extra keyword arguments for each of the transformation
              function.
  
      Returns:
          A transformation function to be used in
          :tf_main:`tf.data.Dataset.map <data/Dataset#map>`.
      """
  
      def _chained_fn(data):
          for tran_fns_i in tran_fns:
              data = tran_fns_i(data, *args, **kwargs)
          return data
  
      return _chained_fn
  
imports: import six
  import tensorflow
  import numpy
  from texar.tf.utils import utils
label_desc: Use image node_id 8 for calling a global function with example usage: make_chained_transformation(tran_fns) and returns: _chained_fn, data