def get_image_info(image_id):
    info = None
    if (image_id not in g.image2info):
        info = g.spawn_api.image.get_info_by_id(image_id)
        g.image2info[image_id] = info
    else:
        info = g.image2info[image_id]
    return info
def get_image_info(image_id):
    info = None
    if (image_id not in g.image2info):
        info = g.spawn_api.image.get_info_by_id(image_id)
        g.image2info[image_id] = info
    else:
        info = g.image2info[image_id]
    return info