code: def _GetMessageFromFactory(factory, full_name):
      """Get a proto class from the MessageFactory by name.
  
      Args:
        factory: a MessageFactory instance.
        full_name: str, the fully qualified name of the proto type.
      Returns:
        A class, for the type identified by full_name.
      Raises:
        KeyError, if the proto is not found in the factory's descriptor pool.
      """
      proto_descriptor = factory.pool.FindMessageTypeByName(full_name)
      proto_cls = factory.GetPrototype(proto_descriptor)
      return proto_cls
  
file_path: catboost/contrib/python/protobuf/py3/google/protobuf/proto_builder.py
imports: from collections import OrderedDict
  import hashlib
  import os
  from google.protobuf import descriptor_pb2
  from google.protobuf import descriptor
  from google.protobuf import message_factory
label_desc: Use image node_id 1 for calling a global function with example usage: _GetMessageFromFactory(factory, full_name) and returns: proto_cls