def get_image_path(image_id):
    info = get_image_info(image_id)
    local_path = os.path.join(g.cache_path, f'{info.id}{sly.fs.get_file_name_with_ext(info.name)}')
    if (not sly.fs.file_exists(local_path)):
        g.spawn_api.image.download_path(image_id, local_path)
    return local_path
def get_image_path(image_id):
    info = get_image_info(image_id)
    local_path = os.path.join(g.cache_path, f'{info.id}{sly.fs.get_file_name_with_ext(info.name)}')
    if (not sly.fs.file_exists(local_path)):
        g.spawn_api.image.download_path(image_id, local_path)
    return local_path