code: def _create_type(metadata_type_class):
      type_with_two_properties = metadata_type_class()
      text_format.Parse(
          """
        name: 'my_type'
        properties {
          key: 'p1'
          value: INT
        }
        properties {
          key: 'p2'
          value: STRING
        }
        """,
          type_with_two_properties,
      )
      return type_with_two_properties
  
file_path: tfx/tfx/orchestration/portable/mlmd/common_utils_test.py
imports: from absl.testing import parameterized
  import tensorflow
  from tfx.orchestration import metadata
  from tfx.orchestration.portable.mlmd import common_utils
  from google.protobuf import text_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _create_type(metadata_type_class) and returns: type_with_two_properties