code: def testEmptySerializedWithoutDefaultsShouldFail(self):
      input_features = {
          "st_a": parsing_ops.VarLenFeature(dtypes.int64),
          "a": parsing_ops.FixedLenFeature(
              (1, 3), dtypes.int64, default_value=[0, 42, 0]
          ),
          "b": parsing_ops.FixedLenFeature(
              (3, 3),
              dtypes.string,
              default_value=np.random.rand(3, 3).astype(bytes),
          ),
          # Feature "c" is missing a default, this gap will cause failure.
          "c": parsing_ops.FixedLenFeature((2,), dtype=dtypes.float32),
      }
  
      # Edge case where the key is there but the feature value is empty
      original = example(features=features({"c": feature()}))
      self._test(
          [original.SerializeToString()],
          input_features,
          expected_err=(
              errors_impl.InvalidArgumentError,
              "Feature: c \\(data type: float\\) is required",
          ),
      )
  
      # Standard case of missing key and value.
      self._test(
          ["", ""],
          input_features,
          expected_err=(
              errors_impl.InvalidArgumentError,
              "Feature: c \\(data type: float\\) is required",
          ),
      )
  
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 4 for calling the ParseExampleDatasetTest obj's underlying member method code with example usage: obj.testEmptySerializedWithoutDefaultsShouldFail() without return types