def METHOD_NAME(registry):
    try:
        url = "http://%s/v1/_ping" % (registry)
        urllib2.urlopen(url).read()
    except Exception as ex:
        fatal("could not ping registry %s: %s", url, ex)