code: def _ProtoMapGet(field, key):
      """
      Given the key, get the value of the repeated field.
      Helper function used by protobuf since it doesn't have map construct
      """
      for v in field:
          if v.key == key:
              return v.value
      return None
  
imports: from caffe2.python import core, scope
label_desc: Use image node_id 5 for calling a global function with example usage: _ProtoMapGet(field, key) and returns: None, v