code: def testExcludeFilterWithDict(self):
      with beam.Pipeline() as pipeline:
          got = (
              pipeline
              | "Create"
              >> beam.Create(
                  [
                      {
                          "a": 1,
                          "b": {"b2": 2},
                          "c": {"c2": {"c21": 3, "c22": 4}},
                          "d": {"d2": 4},
                      }
                  ]
              )
              | "Filter"
              >> extractor.Filter(
                  exclude={"b": {}, "c": {"c2": {"c21": {}}}}
              )
          )
  
          def check_result(got):
              try:
                  self.assertEqual(
                      got,
                      [
                          {
                              "a": 1,
                              "c": {"c2": {"c22": 4}},
                              "d": {"d2": 4},
                          }
                      ],
                  )
              except AssertionError as err:
                  raise util.BeamAssertException(err)
  
          util.assert_that(got, check_result)
  
file_path: model-analysis/tensorflow_model_analysis/extractors/extractor_test.py
imports: import apache_beam
  from apache_beam.testing import util
  import tensorflow
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.extractors import extractor
label_desc: Use image node_id 5 for calling the ExtractorTest obj's underlying member method code with example usage: obj.testExcludeFilterWithDict() without return types