class_docstr: Tests for CopyTo functions of Descriptor.
code: def testCopyToProto_ForeignEnum(self):
      TEST_FOREIGN_ENUM_ASCII = """
        name: 'ForeignEnum'
        value: <
          name: 'FOREIGN_FOO'
          number: 4
        >
        value: <
          name: 'FOREIGN_BAR'
          number: 5
        >
        value: <
          name: 'FOREIGN_BAZ'
          number: 6
        >
        """
  
      self._InternalTestCopyToProto(
          unittest_pb2._FOREIGNENUM,
          descriptor_pb2.EnumDescriptorProto,
          TEST_FOREIGN_ENUM_ASCII,
      )
  
imports: import unittest
  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 import descriptor
  from google.protobuf import text_format
label_desc: Use image node_id 6 for calling the DescriptorCopyToProtoTest obj's underlying member method code with example usage: obj.testCopyToProto_ForeignEnum() without return types