code: def get_custom_split_patterns_key_and_property(
      split_to_pattern: Dict[str, str]
  ) -> Tuple[str, str]:
      """Get a custom property name and value encoding custom split patterns.
  
      Args:
        split_to_pattern: A dictionary mapping split names to file patterns. These
          patterns should be relative to the artifact's uri, which is expected to be
          an ancestor directory of split patterns.
  
      Returns:
        A tuple consisting of a property name and value appropriate for
        artifact.set_string_custom_property.
      """
      return CUSTOM_SPLIT_PATTERN_PROPERTY_NAME, json.dumps(
          split_to_pattern
      )
  
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 6 for calling a global function with example usage: get_custom_split_patterns_key_and_property(split_to_pattern) and returns: CUSTOM_SPLIT_PATTERN_PROPERTY_NAME,  json