code: def shuffle(artifacts):
      """Shuffles the artifacts (in a uniform random way) by span.
  
      Example usage:
  
      Consider 4 artifacts with:
        spans    = [1, 2, 3, 4]
  
      shuffle()
  
      will return artifacts randomly shuffled, e.g.:
        spans = [3, 4, 2, 1]
  
      Args:
        artifacts: The artifacts to filter.
  
      Returns:
        The randomly shuffled artifacts.
      """
      return ops.Shuffle(artifacts)
  
imports: from typing import Optional, Sequence, Union
  from absl import logging
  from tfx.dsl.input_resolution import resolver_function
  from tfx.dsl.input_resolution.ops import ops
  from tfx.types import artifact
  from tfx.types import channel
label_desc: Use image node_id 6 for calling a global function with example usage: shuffle(artifacts) and returns: ops