class_docstr: Tests for the properties of descriptors in generated code.
code: def CheckMessageDescriptor(self, message_descriptor):
      # Basic properties
      self.assertEqual(message_descriptor.name, "TestAllTypes")
      self.assertEqual(
          message_descriptor.full_name, "protobuf_unittest.TestAllTypes"
      )
      # Test equality and hashability
      self.assertEqual(message_descriptor, message_descriptor)
      self.assertEqual(
          message_descriptor.fields[0].containing_type,
          message_descriptor,
      )
      self.assertIn(message_descriptor, [message_descriptor])
      self.assertIn(message_descriptor, {message_descriptor: None})
      # Test field containers
      self.CheckDescriptorSequence(message_descriptor.fields)
      self.CheckDescriptorMapping(message_descriptor.fields_by_name)
      self.CheckDescriptorMapping(message_descriptor.fields_by_number)
      self.CheckDescriptorMapping(
          message_descriptor.fields_by_camelcase_name
      )
  
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 1 for calling the GeneratedDescriptorTest obj's underlying member method code with example usage: obj.CheckMessageDescriptor(message_descriptor) without return types