code: def testSerializedContainingDenseScalar(self):
      original = [
          example(
              features=features(
                  {
                      "a": float_feature([1]),
                  }
              )
          ),
          example(features=features({})),
      ]
  
      serialized = [m.SerializeToString() for m in original]
  
      expected_output = {
          "a": np.array(
              [[1], [-1]], dtype=np.float32
          )  # 2x1 (column vector)
      }
  
      self._test(
          ops.convert_to_tensor(serialized),
          {
              "a": parsing_ops.FixedLenFeature(
                  (1,), dtype=dtypes.float32, default_value=-1
              ),
          },
          expected_values=expected_output,
          create_iterator_twice=True,
      )
  
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 13 for calling the ParseExampleDatasetTest obj's underlying member method code with example usage: obj.testSerializedContainingDenseScalar() without return types