def _MetadataGetter(key):
  """Default metadata getter.

  Args:
    key: The metadata key.

  Returns:
    The metadata value as a string.
  """
  req = urllib2.Request('%s/%s' % (_METADATA_BASE_PATH, key))
  req.add_header('Metadata-Flavor', 'Google')
  return urllib2.urlopen(req).read()
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/vmruntime/vmconfig.py/_MetadataGetter/original