code: def testSparse(self, verify_fn):
      def _map_fn(i):
          return sparse_tensor.SparseTensorValue(
              indices=[[0, 0], [1, 1]],
              values=(i * [1, -1]),
              dense_shape=[2, 2],
          )
  
      def _interleave_fn(x):
          return dataset_ops.Dataset.from_tensor_slices(
              sparse_ops.sparse_to_dense(
                  x.indices, x.dense_shape, x.values
              )
          )
  
      def _build_dataset():
          return (
              dataset_ops.Dataset.range(10)
              .map(_map_fn)
              .interleave(_interleave_fn, cycle_length=1)
          )
  
      verify_fn(self, _build_dataset, num_outputs=20)
  
imports: import multiprocessing
  import os
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.experimental.ops import testing
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the InterleaveCheckpointTest obj's underlying member method code with example usage: obj.testSparse(verify_fn) and returns: sparse_tensor, dataset_ops, dataset_ops