code: def get_payload_format_string(examples: types.Artifact) -> str:
      """Returns the payload format as a string."""
      return example_gen_pb2.PayloadFormat.Name(
          get_payload_format(examples)
      )
  
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 2 for calling a global function with example usage: get_payload_format_string(examples) and returns: example_gen_pb2