code: def testConsecutiveSpans_Denylist(self):
      artifacts = (
          self._get_artifacts_for_sequential_rolling_range_tests()
      )
      a10, a20, a31, _, a40, a50, _, _ = artifacts
  
      actual = self._consecutive_spans(
          artifacts, first_span=1, skip_last_n=0
      )
      self.assertEqual(actual, [a10, a20, a31, a40, a50])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=0,
          denylist=[1],
      )
      self.assertEqual(actual, [a20, a31, a40, a50])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=0,
          denylist=[1, 2],
      )
      self.assertEqual(actual, [a31, a40, a50])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=0,
          denylist=[1, 3],
      )
      self.assertEqual(actual, [a20])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=0,
          denylist=[1, 2, 5],
      )
      self.assertEqual(actual, [a31, a40])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=5,
          denylist=[1, 2, 5],
      )
      self.assertEqual(actual, [a31])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=3,
          skip_last_n=5,
          denylist=[3],
      )
      self.assertEqual(actual, [])
  
      actual = self._consecutive_spans(
          artifacts,
          first_span=1,
          skip_last_n=0,
          denylist=[3],
      )
      self.assertEqual(actual, [a10, a20])
  
imports: from typing import Sequence
  import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
  from tfx.types import artifact
label_desc: Use image node_id 10 for calling the ConsecutiveSpansOpTest obj's underlying member method code with example usage: obj.testConsecutiveSpans_Denylist() without return types