code: def testFilterDict(self, apply_filter):
      dataset = dataset_ops.Dataset.range(10).map(
          lambda x: {"foo": x * 2, "bar": x**2}
      )
      dataset = apply_filter(
          dataset, lambda d: math_ops.equal(d["bar"] % 2, 0)
      )
      dataset = dataset.map(lambda d: d["foo"] + d["bar"])
      self.assertDatasetProduces(
          dataset,
          expected_output=[
              (i * 2 + i**2) for i in range(10) if not (i**2) % 2
          ],
      )
  
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 3 for calling the FilterTest obj's underlying member method code with example usage: obj.testFilterDict(apply_filter) without return types