code: def compile_function(inputs, outputs):
      """Compiles a tensorflow function using the current session.
  
      Args:
          inputs (list[tf.Tensor]): Inputs to the function. Can be a list of
              inputs or just one.
          outputs (list[tf.Tensor]): Outputs of the function. Can be a list of
              outputs or just one.
  
      Returns:
          Callable: Compiled TensorFlow function.
      """
  
      def _run(*input_vals):
          # pylint: disable=missing-return-doc, missing-return-type-doc
          sess = tf.compat.v1.get_default_session()
          return sess.run(
              outputs, feed_dict=dict(list(zip(inputs, input_vals)))
          )
  
      return _run
  
imports: import collections
  import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: compile_function(inputs, outputs) and returns: _run, sess