def METHOD_NAME(image_paths: List[pathlib.Path], override: bool = False):
    images_content = []
    for image_path in image_paths:
        json_path = image_path.with_suffix(".json.gz")
        if json_path.is_file():
            if override:
                # print("Deleting file {}".format(json_path))
                json_path.unlink()
            else:
                continue
        content = get_base64_image_from_path(image_path)
        if content:
            images_content.append((image_path, content))
    if not images_content:
        return [], False
    r = run_ocr_on_image_batch([x[1] for x in images_content])
    if not r.ok:
        print("HTTP {} received".format(r.status_code))
        print("Response: {}".format(r.text))
        print(image_paths)
        return [], True
    r_json = orjson.loads(r.content)
    responses = r_json["responses"]
    return (
        [(images_content[i][0], responses[i]) for i in range(len(images_content))],
        True,
    )