code: def test_singleton_dataset_with_nested_elements(self):
      ds = _create_dataset(range(10))
      ds = ds.map(
          lambda el: {"a": el, "b": el + 1, "c": (el + 2, el + 3)}
      )
      np_ds = dataset_utils.as_numpy(ds)
      for i, el in enumerate(np_ds):
          self.assertEqual(i, el["a"])
          self.assertEqual(i + 1, el["b"])
          self.assertEqual(i + 2, el["c"][0])
          self.assertEqual(i + 3, el["c"][1])
  
      if tf.executing_eagerly():
          self.assertEqual(
              np_ds.element_spec,
              {
                  "a": enp.ArraySpec(shape=(), dtype=np.int32),
                  "b": enp.ArraySpec(shape=(), dtype=np.int32),
                  "c": (
                      enp.ArraySpec(shape=(), dtype=np.int32),
                      enp.ArraySpec(shape=(), dtype=np.int32),
                  ),
              },
          )
  
imports: from etils import enp
  import numpy
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_utils
label_desc: Use image node_id 5 for calling the DatasetAsNumPyTest obj's underlying member method code with example usage: obj.test_singleton_dataset_with_nested_elements() without return types