code: def testListFromTensor(self):
      with self.session(), self.test_scope():
          t = constant_op.constant([1.0, 2.0])
          l = list_ops.tensor_list_from_tensor(t, element_shape=[])
          e = list_ops.tensor_list_get_item(
              l, 0, element_dtype=dtypes.float32
          )
          self.assertAllEqual(e, 1.0)
          l, e0 = list_ops.tensor_list_pop_back(
              l, element_dtype=dtypes.float32
          )
          self.assertAllEqual(e0, 2.0)
          l, e1 = list_ops.tensor_list_pop_back(
              l, element_dtype=dtypes.float32
          )
          self.assertAllEqual(e1, 1.0)
          self.assertAllEqual(list_ops.tensor_list_length(l), 2)
  
imports: import os
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import list_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the ListOpsTest obj's underlying member method code with example usage: obj.testListFromTensor() without return types