code: def testPartialMessageToJson(self):
      message = json_format_proto3_pb2.TestMessage(
          string_value="test", repeated_int32_value=[89, 4]
      )
      self.assertEqual(
          json.loads(json_format.MessageToJson(message)),
          json.loads(
              '{"stringValue": "test", '
              '"repeatedInt32Value": [89, 4]}'
          ),
      )
      parsed_message = json_format_proto3_pb2.TestMessage()
      self.CheckParseBack(message, parsed_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 2 for calling the JsonFormatTest obj's underlying member method code with example usage: obj.testPartialMessageToJson() without return types