code: def testEquality(self):
      spec_1_1 = tensor.BoundedTensorSpec(
          (1, 2, 3), dtypes.float32, 0, (5, 5, 5)
      )
      spec_1_2 = tensor.BoundedTensorSpec(
          (1, 2, 3),
          dtypes.float32,
          0.00000001,
          (5, 5, 5.00000000000000001),
      )
      spec_2_1 = tensor.BoundedTensorSpec(
          (1, 2, 3), dtypes.float32, 1, (5, 5, 5)
      )
      spec_2_2 = tensor.BoundedTensorSpec(
          (1, 2, 3), dtypes.float32, (1, 1, 1), (5, 5, 5)
      )
      spec_2_3 = tensor.BoundedTensorSpec(
          (1, 2, 3), dtypes.float32, (1, 1, 1), 5
      )
      spec_3_1 = tensor.BoundedTensorSpec(
          (1, 2, 3), dtypes.float32, (2, 1, 1), (5, 5, 5)
      )
  
      self.assertEqual(spec_1_1, spec_1_2)
      self.assertEqual(spec_1_2, spec_1_1)
  
      self.assertNotEqual(spec_1_1, spec_2_2)
      self.assertNotEqual(spec_1_1, spec_2_1)
      self.assertNotEqual(spec_2_2, spec_1_1)
      self.assertNotEqual(spec_2_1, spec_1_1)
  
      self.assertEqual(spec_2_1, spec_2_2)
      self.assertEqual(spec_2_2, spec_2_1)
      self.assertEqual(spec_2_2, spec_2_3)
  
      self.assertNotEqual(spec_1_1, spec_3_1)
      self.assertNotEqual(spec_2_1, spec_3_1)
      self.assertNotEqual(spec_2_2, spec_3_1)
  
imports: import pickle
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.framework import full_type_pb2
  from tensorflow.core.function import trace_type
  from tensorflow.python.eager import context
  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
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import type_spec
  from tensorflow.python.framework.type_utils import fulltypes_for_flat_tensors
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 8 for calling the BoundedTensorSpecTest obj's underlying member method code with example usage: obj.testEquality() without return types