def _parse_image_ref(image_href):
    o = urlparse(image_href)
    port = o.port or 80
    host = o.netloc.split(':', 1)[0]
    image_id = int(o.path.split('/')[-1])
    return (image_id, host, port)
Convert an input value in CPU-seconds to megacycles.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/image/glance.py/_parse_image_ref--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/quota.py/cpu_seconds_to_megacycles