code: def testConsecutiveSpans_AllSameSpanSameVersion(self):
      a1 = test_utils.DummyArtifact()
      a2 = test_utils.DummyArtifact()
      a3 = test_utils.DummyArtifact()
  
      a1.span = 1
      a2.span = 1
      a3.span = 1
  
      a1.version = 1
      a2.version = 1
      a3.version = 1
  
      # The tie should be broken by the id.
      a1.id = 1
      a2.id = 2
      a3.id = 3
  
      artifacts = [a1, a2, a3]
  
      actual = self._consecutive_spans(artifacts)
      self.assertEqual(actual, [a3])
  
      actual = self._consecutive_spans(
          artifacts, keep_all_versions=True
      )
      self.assertEqual(actual, [a1, a2, a3])
  
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 6 for calling the ConsecutiveSpansOpTest obj's underlying member method code with example usage: obj.testConsecutiveSpans_AllSameSpanSameVersion() without return types