code: def testInvalidAny(self):
      message = any_pb2.Any()
      text = (
          '{"@type": "type.googleapis.com/google.protobuf.Int32Value"}'
      )
      self.assertRaisesRegexp(
          KeyError, "value", json_format.Parse, text, message
      )
      text = '{"value": 1234}'
      self.assertRaisesRegexp(
          json_format.ParseError,
          "@type is missing when parsing any message.",
          json_format.Parse,
          text,
          message,
      )
      text = '{"@type": "type.googleapis.com/MessageNotExist", "value": 1234}'
      self.assertRaisesRegexp(
          TypeError,
          "Can not find message descriptor by type_url: "
          "type.googleapis.com/MessageNotExist.",
          json_format.Parse,
          text,
          message,
      )
      # Only last part is to be used: b/25630112
      text = (
          r'{"@type": "incorrect.googleapis.com/google.protobuf.Int32Value",'
          r'"value": 1234}'
      )
      json_format.Parse(text, message)
  
imports: import json
  import math
  import sys
  from google.protobuf import any_pb2
  from google.protobuf import duration_pb2
  from google.protobuf import field_mask_pb2
  from google.protobuf import struct_pb2
  from google.protobuf import timestamp_pb2
  from google.protobuf import wrappers_pb2
  from google.protobuf.internal import well_known_types
  from google.protobuf import json_format
  from google.protobuf.util import json_format_proto3_pb2
label_desc: Use image node_id 35 for calling the JsonFormatTest obj's underlying member method code with example usage: obj.testInvalidAny() without return types