code: def tf_output(c_op, index):
      """Returns a wrapped TF_Output with specified operation and index.
  
      Args:
        c_op: wrapped TF_Operation
        index: integer
  
      Returns:
        Wrapped TF_Output
      """
      ret = c_api.TF_Output()
      ret.oper = c_op
      ret.index = index
      return ret
  
imports: import contextlib
  from tensorflow.core.framework import api_def_pb2
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.util import compat
  from tensorflow.python.util import tf_contextlib
label_desc: Use image node_id 2 for calling a global function with example usage: tf_output(c_op, index) and returns: ret