code: def parse_test_proto(proto_type, proto_string):
      instance = proto_type()
      text_format.Merge(proto_string, instance)
      return instance
  
file_path: magenta/magenta/common/testing_lib.py
imports: import numpy
  import six
  from google.protobuf import text_format
label_desc: Use image node_id 2 for calling a global function with example usage: parse_test_proto(proto_type, proto_string) and returns: instance