code: def test_ragged_tensors_ds(self):
      def _gen_ragged_tensors():
          # Yield the (flat_values, rowids)
          yield ([0, 1, 2, 3], [0, 0, 0, 2])  # ex0
          yield ([], [])  # ex1
          yield ([4, 5, 6], [0, 1, 1])  # ex2
  
      ds = tf.data.Dataset.from_generator(
          _gen_ragged_tensors,
          output_types=(tf.int64, tf.int64),
          output_shapes=((None,), (None,)),
      )
      ds = ds.map(tf.RaggedTensor.from_value_rowids)
  
      rt0, rt1, rt2 = list(dataset_utils.as_numpy(ds))
      self.assertAllEqual(
          rt0,
          [
              [0, 1, 2],
              [],
              [
                  3,
              ],
          ],
      )
      self.assertAllEqual(rt1, [])
      self.assertAllEqual(rt2, [[4], [5, 6]])
  
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 11 for calling the DatasetAsNumPyTest obj's underlying member method code with example usage: obj.test_ragged_tensors_ds() without return types