code: def test_json_to_proto(self):
      json_str = '{"obsolete_field":2,"string_value":"x"}'
      result = proto_utils.json_to_proto(json_str, foo_pb2.TestProto())
      self.assertEqual(result, foo_pb2.TestProto(string_value="x"))
      # Make sure that returned type is not message.Message
      self.assertEqual(result.string_value, "x")
  
file_path: tfx/tfx/utils/proto_utils_test.py
imports: import tensorflow
  from tfx.utils import proto_utils
  from tfx.utils import test_case_utils
  from tfx.utils.testdata import foo_pb2
  from google.protobuf import any_pb2
  from google.protobuf import descriptor_pb2
label_desc: Use image node_id 5 for calling the ProtoUtilsTest obj's underlying member method code with example usage: obj.test_json_to_proto() without return types