code: def get_metadata_or_fail(metadata_key):
    
    try:
      return http_get_metadata(metadata_key)
    except IOError as error:
      fail("Exception in http_get_metadata {} {}".format(metadata_key, repr(error)))
docs: Call get_metadata; halt with fail() if it raises an exception