code: def testPushPop(self):
      with self.session() as sess, self.test_scope():
          l = list_ops.empty_tensor_list(
              element_shape=(7, 15),
              element_dtype=dtypes.float32,
              max_num_elements=10,
          )
          l = list_ops.tensor_list_push_back(
              l, constant_op.constant(1.0, shape=(7, 15))
          )
          l = list_ops.tensor_list_push_back(
              l, constant_op.constant(2.0, shape=(7, 15))
          )
          l, e2 = list_ops.tensor_list_pop_back(
              l, element_dtype=dtypes.float32
          )
          _, e1 = list_ops.tensor_list_pop_back(
              l, element_dtype=dtypes.float32
          )
          self.assertAllEqual(sess.run(e2), 2.0 * np.ones((7, 15)))
          self.assertAllEqual(sess.run(e1), 1.0 * np.ones((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 2 for calling the ListOpsTest obj's underlying member method code with example usage: obj.testPushPop() without return types