code: def _GatherReturnElements(requested_return_elements, graph, results):
      """Returns the requested return elements from results.
  
      Args:
        requested_return_elements: list of strings of operation and tensor names
        graph: Graph
        results: wrapped TF_ImportGraphDefResults
  
      Returns:
        list of `Operation` and/or `Tensor` objects
      """
      return_outputs = c_api.TF_ImportGraphDefResultsReturnOutputs(
          results
      )
      return_opers = c_api.TF_ImportGraphDefResultsReturnOperations(
          results
      )
  
      combined_return_elements = []
      outputs_idx = 0
      opers_idx = 0
      for name in requested_return_elements:
          if ":" in name:
              combined_return_elements.append(
                  graph._get_tensor_by_tf_output(
                      return_outputs[outputs_idx]
                  )
              )  # pylint: disable=protected-access
              outputs_idx += 1
          else:
              combined_return_elements.append(
                  graph._get_operation_by_tf_operation(
                      return_opers[opers_idx]
                  )
              )  # pylint: disable=protected-access
              opers_idx += 1
      return combined_return_elements
  
imports: import contextlib
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python import tf2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.framework import c_api_util
  from tensorflow.python.framework import device
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import function
  from tensorflow.python.framework import op_def_registry
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.util import compat
  from tensorflow.python.util.deprecation import deprecated_args
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 13 for calling a global function with example usage: _GatherReturnElements(requested_return_elements, graph, results) and returns: combined_return_elements