code: def get_split_file_patterns(
      artifacts: List[types.Artifact], split: str
  ) -> List[str]:
      """Returns a file pattern for reading examples from a split."""
      result = []
      for artifact in artifacts:
          maybe_pattern = _get_custom_split_pattern(artifact, split)
          if maybe_pattern is not None:
              result.append(maybe_pattern)
          else:
              uri = artifact_utils.get_split_uri([artifact], split)
              result.append(io_utils.all_files_pattern(uri))
      return result
  
file_path: tfx/tfx/components/util/examples_utils.py
imports: import json
  import os
  from typing import Dict, List, Optional, Tuple
  from absl import logging
  from tfx import types
  from tfx.components.example_gen import utils
  from tfx.proto import example_gen_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.utils import io_utils
label_desc: Use image node_id 8 for calling a global function with example usage: get_split_file_patterns(artifacts, split) and returns: result