code: def testSerializedShapeMismatch(self):
      aname = "a"
      bname = "b"
      cname = "c"
      original = [
          example(
              features=features(
                  {
                      cname: int64_feature([2]),
                  }
              )
          ),
          example(
              features=features(
                  {
                      aname: float_feature([1, 1]),
                      bname: bytes_feature([b"b0_str", b"b1_str"]),
                  }
              )
          ),
          example(
              features=features(
                  {
                      aname: float_feature([-1, -1, 2, 2]),
                      bname: bytes_feature([b"b1"]),
                  }
              )
          ),
          example(
              features=features(
                  {
                      aname: float_feature([]),
                      cname: int64_feature([3]),
                  }
              )
          ),
      ]
  
      serialized = [m.SerializeToString() for m in original]
      if context.executing_eagerly():
          self._test(
              ops.convert_to_tensor(serialized),
              {
                  aname: parsing_ops.FixedLenSequenceFeature(
                      (2, 1),
                      dtype=dtypes.float32,
                      allow_missing=True,
                      default_value=[],
                  ),
                  bname: parsing_ops.FixedLenSequenceFeature(
                      (2, 1, 1), dtype=dtypes.string, allow_missing=True
                  ),
              },
              expected_err=(
                  errors_impl.InvalidArgumentError,
                  "Input to reshape is a tensor with 0 values",
              ),
          )
      else:
          self._test(
              ops.convert_to_tensor(serialized),
              {
                  aname: parsing_ops.FixedLenSequenceFeature(
                      (2, 1),
                      dtype=dtypes.float32,
                      allow_missing=True,
                      default_value=[],
                  ),
                  bname: parsing_ops.FixedLenSequenceFeature(
                      (2, 1, 1), dtype=dtypes.string, allow_missing=True
                  ),
              },
              expected_err=(
                  ValueError,
                  "Cannot reshape a tensor with 0 elements to shape",
              ),
          )
  
imports: import copy
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.example import example_pb2
  from tensorflow.core.example import feature_pb2
  from tensorflow.python.data.experimental.ops import parsing_ops
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.kernel_tests import tf_record_test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.eager import context
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 18 for calling the ParseExampleDatasetTest obj's underlying member method code with example usage: obj.testSerializedShapeMismatch() without return types