class_docstr: Tests for CopyTo functions of Descriptor.
class_docstr_tok: ["Tests","for","CopyTo","functions","of","Descriptor","."]
code: def testCopyToProto_AllExtensions(self):
      TEST_EMPTY_MESSAGE_WITH_EXTENSIONS_ASCII = """
        name: 'TestEmptyMessageWithExtensions'
        extension_range: <
          start: 1
          end: 536870912
        >
        """
  
      self._InternalTestCopyToProto(
          unittest_pb2.TestEmptyMessageWithExtensions.DESCRIPTOR,
          descriptor_pb2.DescriptorProto,
          TEST_EMPTY_MESSAGE_WITH_EXTENSIONS_ASCII,
      )
  
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 8 for calling the DescriptorCopyToProtoTest obj's underlying member method code with example usage: obj.testCopyToProto_AllExtensions() without return types