code: def set_payload_format(examples: types.Artifact, payload_format: int):
      """Sets the payload format custom property for `examples`.
  
      Args:
        examples: A standard_artifacts.Examples artifact.
        payload_format: One of the enums in example_gen_pb2.PayloadFormat.
      """
      assert (
          examples.type_name == standard_artifacts.Examples.TYPE_NAME
      ), "examples must be of type standard_artifacts.Examples"
      examples.set_string_custom_property(
          example_gen_utils.PAYLOAD_FORMAT_PROPERTY_NAME,
          example_gen_pb2.PayloadFormat.Name(payload_format),
      )
  
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 3 for calling a global function with example usage: set_payload_format(examples, payload_format) without return types