code: def _build_sparse_filter_dataset(self):
      def _map_fn(i):
          return (
              sparse_tensor.SparseTensor(
                  indices=[[0, 0]], values=(i * [1]), dense_shape=[1, 1]
              ),
              i,
          )
  
      def _filter_fn(_, i):
          return math_ops.equal(i % 2, 0)
  
      return (
          dataset_ops.Dataset.range(10)
          .map(_map_fn)
          .filter(_filter_fn)
          .map(lambda x, i: x)
      )
  
imports: from absl.testing import parameterized
  import numpy
  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 map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 5 for calling the FilterCheckpointTest obj's underlying member method code with example usage: obj._build_sparse_filter_dataset() and returns: dataset_ops, sparse_tensor,  i, math_ops