code: def _dict_path_to_proto_path(dict_path):
      dict_path = dict_path[5:-1]  # strip off 'root[...]'
      keys = dict_path.split("][")  # tokenize
      return ProtoPath(
          (k[1:-1] if k[0] == "'" else int(k)) for k in keys
      )
  
imports: import deepdiff
  from google.protobuf import json_format
label_desc: Use image node_id 2 for calling a global function with example usage: _dict_path_to_proto_path(dict_path) and returns: ProtoPath