def METHOD_NAME(
    self,
    task_id: int,
    frame_ids: Sequence[int],
    *,
    outdir: str = "",
    quality: str = "original",
) -> None:
    """
    Download the requested frame numbers for a task and save images as
    task_<ID>_frame_<FRAME>.jpg.
    """
    self.client.tasks.retrieve(obj_id=task_id).download_frames(
        frame_ids=frame_ids,
        outdir=outdir,
        quality=quality,
        filename_pattern=f"task_{task_id}" + "_frame_{frame_id:06d}{frame_ext}",
    )