code: def _create_proto_instance_from_name(
      message_name: str, pool: descriptor_pool.DescriptorPool
  ) -> ProtoMessage:
      """Creates a protobuf message instance from a given message name."""
      message_descriptor = pool.FindMessageTypeByName(message_name)
      factory = message_factory.MessageFactory(pool)
      message_type = factory.GetPrototype(message_descriptor)
      return message_type()
  
file_path: tfx/tfx/utils/proto_utils.py
imports: from typing import Any, Dict, Iterator, TypeVar, Optional
  from google.protobuf import any_pb2
  from google.protobuf import descriptor_pb2
  from google.protobuf import descriptor
  from google.protobuf import descriptor_pool
  from google.protobuf import json_format
  from google.protobuf import message
  from google.protobuf import message_factory
label_desc: Use image node_id 7 for calling a global function with example usage: _create_proto_instance_from_name(message_name, pool) and returns: message_type