code: def testUnknownParseMismatchEnumValue(self):
      just_string = missing_enum_values_pb2.JustString()
      just_string.dummy = "blah"
  
      missing = missing_enum_values_pb2.TestEnumValues()
      # The parse is invalid, storing the string proto into the set of
      # unknown fields.
      missing.ParseFromString(just_string.SerializeToString())
  
      # Fetching the enum field shouldn't crash, instead returning the
      # default value.
      self.assertEqual(missing.optional_nested_enum, 0)
  
imports: from google.protobuf import unittest_mset_pb2
  from google.protobuf import unittest_pb2
  from google.protobuf import unittest_proto3_arena_pb2
  from google.protobuf.internal import api_implementation
  from google.protobuf.internal import encoder
  from google.protobuf.internal import message_set_extensions_pb2
  from google.protobuf.internal import missing_enum_values_pb2
  from google.protobuf.internal import test_util
  from google.protobuf.internal import testing_refleaks
  from google.protobuf.internal import type_checkers
label_desc: Use image node_id 3 for calling the UnknownEnumValuesTest obj's underlying member method code with example usage: obj.testUnknownParseMismatchEnumValue() without return types