class_docstr: A database of Python generated symbols.
class_docstr_tok: ["A","database","of","Python","generated","symbols","."]
docstr: Registers the given enum descriptor in the local database.
  
  Args:
    enum_descriptor (EnumDescriptor): The enum descriptor to register.
  
  Returns:
    EnumDescriptor: The provided descriptor.
docstr_tok: ["Registers","the","given","enum","descriptor","in","the","local","database",".","Args",":","enum_descriptor","(","EnumDescriptor",")",":","The","enum","descriptor","to","register",".","Returns",":","EnumDescriptor",":","The","provided","descriptor","."]
code: def RegisterEnumDescriptor(self, enum_descriptor):
      """Registers the given enum descriptor in the local database.
  
      Args:
        enum_descriptor (EnumDescriptor): The enum descriptor to register.
  
      Returns:
        EnumDescriptor: The provided descriptor.
      """
      if api_implementation.Type() == "python":
          # pylint: disable=protected-access
          self.pool._AddEnumDescriptor(enum_descriptor)
      return enum_descriptor
  
file_path: catboost/contrib/python/protobuf/py2/google/protobuf/symbol_database.py
imports: from google.protobuf.internal import api_implementation
  from google.protobuf import descriptor_pool
  from google.protobuf import message_factory
label_desc: Use image node_id 3 for calling the SymbolDatabase obj's underlying member method code with example usage: obj.RegisterEnumDescriptor(enum_descriptor) and returns: enum_descriptor