code: def assertTupleShape(self, shape, expected):
      self.assertEqual(shape.element_type, xla_data_pb2.TUPLE)
      for sub_shape, sub_expected in zip(shape.tuple_shapes, expected):
          if sub_shape.element_type == xla_data_pb2.TUPLE:
              self.assertTupleShape(sub_shape, sub_expected)
          else:
              expected_dimensions, expected_element_types = sub_expected
              self.assertShape(
                  sub_shape, expected_dimensions, expected_element_types
              )
  
imports: import collections
  import itertools
  import operator
  from absl.testing import absltest
  import numpy
  from local_xla.xla import xla_data_pb2
  from xla.python_api import xla_literal
label_desc: Use image node_id 3 for calling the XlaLiteralTest obj's underlying member method code with example usage: obj.assertTupleShape(shape, expected) without return types