class_docstr: AllSpans operator.
docstr: Returns the sorted artifacts with unique spans.
docstr_tok: ["Returns","the","sorted","artifacts","with","unique","spans","."]
code: def apply(
      self, input_list: Sequence[types.Artifact]
  ) -> Sequence[types.Artifact]:
      """Returns the sorted artifacts with unique spans."""
  
      # Get artifacts with "span" and "version" in PROPERTIES.
      valid_artifacts = ops_utils.get_valid_artifacts(
          input_list, ops_utils.SPAN_AND_VERSION_PROPERTIES
      )
      if not valid_artifacts:
          return []
  
      # Return the sorted artifacts.
      return ops_utils.filter_artifacts_by_span(
          artifacts=valid_artifacts,
          span_descending=False,
          n=0,  # n = 0 so that all the spans are considered.
          keep_all_versions=self.keep_all_versions,
      )
  
imports: from typing import Sequence
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import ops_utils
label_desc: Use image node_id 1 for calling the AllSpans obj's underlying member method code with example usage: obj.apply(input_list) and returns: ops_utils, list