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 testCppDescriptorContainer(self):
      # Check that the collection is still valid even if the parent disappeared.
      enum = unittest_pb2.TestAllTypes.DESCRIPTOR.enum_types_by_name[
          "NestedEnum"
      ]
      values = enum.values
      del enum
      self.assertEqual("FOO", values[0].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 6 for calling the GeneratedDescriptorTest obj's underlying member method code with example usage: obj.testCppDescriptorContainer() without return types