code: def _tf_tensor_list_append(list_, x):
      """Overload of list_append that stages a Tensor list write."""
  
      def empty_list_of_elements_like_x():
          tensor_x = ops.convert_to_tensor(x)
          return list_ops.empty_tensor_list(
              element_shape=array_ops.shape(tensor_x),
              element_dtype=tensor_x.dtype,
          )
  
      list_ = cond.cond(
          list_ops.tensor_list_length(list_) > 0,
          lambda: list_,
          empty_list_of_elements_like_x,
      )
      return list_ops.tensor_list_push_back(list_, x)
  
imports: import collections
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import list_ops
  from tensorflow.python.ops import tensor_array_ops
label_desc: Use image node_id 6 for calling a global function with example usage: _tf_tensor_list_append(list_, x) and returns: list_ops, list_ops