code: def _make_ragged_ds(nrows):
      """Create a test dataset with RaggedTensor elements (of varying size)."""
      values = [
          [[i] * (i % 3) for i in range(j)] * (j % 3)
          for j in range(nrows)
      ]
      rt = ragged_factory_ops.constant(values)
      return dataset_ops.Dataset.from_tensor_slices(rt)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged import ragged_concat_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling a global function with example usage: _make_ragged_ds(nrows) and returns: dataset_ops