code: def testExcludeSpans_SingleEntry(self):
      a1 = test_utils.DummyArtifact()
      a1.span = 1
      artifacts = [a1]
  
      actual = self._exclude_spans(artifacts)
      self.assertEqual(actual, [a1])
  
      actual = self._exclude_spans(artifacts, denylist=[1])
      self.assertEqual(actual, [])
  
      actual = self._exclude_spans(artifacts, denylist=[2])
      self.assertEqual(actual, [a1])
  
file_path: tfx/tfx/dsl/input_resolution/ops/exclude_spans_op_test.py
imports: import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
label_desc: Use image node_id 3 for calling the ExcludeSpansOpTest obj's underlying member method code with example usage: obj.testExcludeSpans_SingleEntry() without return types