code: def test_get_payload_format(self):
      examples = standard_artifacts.Examples()
      self.assertEqual(
          examples_utils.get_payload_format(examples),
          example_gen_pb2.PayloadFormat.FORMAT_TF_EXAMPLE,
      )
      self.assertEqual(
          examples_utils.get_payload_format_string(examples),
          "FORMAT_TF_EXAMPLE",
      )
  
      examples.set_string_custom_property(
          utils.PAYLOAD_FORMAT_PROPERTY_NAME, "FORMAT_PROTO"
      )
      self.assertEqual(
          examples_utils.get_payload_format(examples),
          example_gen_pb2.PayloadFormat.FORMAT_PROTO,
      )
      self.assertEqual(
          examples_utils.get_payload_format_string(examples),
          "FORMAT_PROTO",
      )
  
file_path: tfx/tfx/components/util/examples_utils_test.py
imports: import tensorflow
  from tfx.components.example_gen import utils
  from tfx.components.util import examples_utils
  from tfx.proto import example_gen_pb2
  from tfx.types import standard_artifacts
label_desc: Use image node_id 1 for calling the ExamplesUtilsTest obj's underlying member method code with example usage: obj.test_get_payload_format() without return types