async def METHOD_NAME(
    db: AsyncSession, record_id: UUID, with_dataset: bool = False, with_suggestions: bool = False
) -> "Record":
    record = await datasets.get_record_by_id(db, record_id, with_dataset, with_suggestions)
    if not record:
        raise HTTPException(
            status_code=status.HTTP_404_NOT_FOUND,
            detail=f"Record with id `{record_id}` not found",
        )
    return record