class_docstr: Tests for the properties of descriptors in generated code.
class_docstr_tok: ["Tests","for","the","properties","of","descriptors","in","generated","code","."]
code: def testDescriptor(self):
      message_descriptor = unittest_pb2.TestAllTypes.DESCRIPTOR
      self.CheckMessageDescriptor(message_descriptor)
      field_descriptor = message_descriptor.fields_by_name[
          "optional_int32"
      ]
      self.CheckFieldDescriptor(field_descriptor)
      field_descriptor = message_descriptor.fields_by_camelcase_name[
          "optionalInt32"
      ]
      self.CheckFieldDescriptor(field_descriptor)
  
imports: import sys
  from google.protobuf import unittest_custom_options_pb2
  from google.protobuf import unittest_import_pb2
  from google.protobuf import unittest_pb2
  from google.protobuf import descriptor_pb2
  from google.protobuf.internal import api_implementation
  from google.protobuf.internal import test_util
  from google.protobuf import descriptor
  from google.protobuf import descriptor_pool
  from google.protobuf import symbol_database
  from google.protobuf import text_format
label_desc: Use image node_id 5 for calling the GeneratedDescriptorTest obj's underlying member method code with example usage: obj.testDescriptor() without return types