class_docstr: A collection of protobufs dynamically constructed by descriptor protos.
class_docstr_tok: ["A","collection","of","protobufs","dynamically","constructed","by","descriptor","protos","."]
docstr: Try to Load extensions from descriptor db.
  
  Args:
    message_descriptor: descriptor of the extended message.
    number: the extension number that needs to be loaded.
code: def _TryLoadExtensionFromDB(self, message_descriptor, number):
      """Try to Load extensions from descriptor db.
  
      Args:
        message_descriptor: descriptor of the extended message.
        number: the extension number that needs to be loaded.
      """
      if not self._descriptor_db:
          return
      # Only supported when FindFileContainingExtension is provided.
      if not hasattr(
          self._descriptor_db, "FindFileContainingExtension"
      ):
          return
  
      full_name = message_descriptor.full_name
      file_proto = self._descriptor_db.FindFileContainingExtension(
          full_name, number
      )
  
      if file_proto is None:
          return
  
      try:
          self._ConvertFileProtoToFileDescriptor(file_proto)
      except:
          warn_msg = (
              "Unable to load proto file %s for extension number %d."
              % (file_proto.name, number)
          )
          warnings.warn(warn_msg, RuntimeWarning)
  
imports: import collections
  import warnings
  from google.protobuf import descriptor
  from google.protobuf import descriptor_database
  from google.protobuf import text_encoding
label_desc: Use image node_id 26 for calling the DescriptorPool obj's underlying member method code with example usage: obj._TryLoadExtensionFromDB(message_descriptor, number) without return types