def METHOD_NAME(
    self,
    format_name: str,
    filename: StrPath,
    *,
    pbar: Optional[ProgressReporter] = None,
    status_check_period: Optional[int] = None,
    include_images: bool = True,
) -> None:
    """
    Download annotations for a project in the specified format (e.g. 'YOLO ZIP 1.0').
    """
    filename = Path(filename)
    if include_images:
        endpoint = self.api.retrieve_dataset_endpoint
    else:
        endpoint = self.api.retrieve_annotations_endpoint
    Downloader(self._client).prepare_and_download_file_from_endpoint(
        endpoint=endpoint,
        filename=filename,
        url_params={"id": self.id},
        query_params={"format": format_name},
        pbar=pbar,
        status_check_period=status_check_period,
    )
    self._client.logger.info(f"Dataset for project {self.id} has been downloaded to {filename}")