class_docstr: Factory for creating Proto2 messages from descriptors in a pool.
docstr: Initializes a new factory.
code: def __init__(self, pool=None):
      """Initializes a new factory."""
      self.pool = pool or descriptor_pool.DescriptorPool()
  
      # local cache of all classes built from protobuf descriptors
      self._classes = {}
  
file_path: catboost/contrib/python/protobuf/py3/google/protobuf/message_factory.py
imports: from google.protobuf.internal import api_implementation
  from google.protobuf import descriptor_pool
  from google.protobuf import message
label_desc: Use image node_id 1 to create a new MessageFactory object from inherited base classes: object with example: obj = MessageFactory(pool)