code: def testElementShape(self):
      with self.session() as sess, self.test_scope():
          dim = array_ops.placeholder(dtypes.int32)
          l = list_ops.empty_tensor_list(
              element_shape=(dim, 15),
              element_dtype=dtypes.float32,
              max_num_elements=20,
          )
          e32 = list_ops.tensor_list_element_shape(
              l, shape_type=dtypes.int32
          )
          e64 = list_ops.tensor_list_element_shape(
              l, shape_type=dtypes.int64
          )
          self.assertAllEqual(sess.run(e32, {dim: 10}), (10, 15))
          self.assertAllEqual(sess.run(e64, {dim: 7}), (7, 15))
  
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 1 for calling the ListOpsTest obj's underlying member method code with example usage: obj.testElementShape() without return types