async def METHOD_NAME(actor_executor: ActorExecutor) -> None:
    # Arrange
    invalid_task_id = TaskId.create()
    # Act
    actor_executor.cancel_task(invalid_task_id)
    # Assert
    assert not actor_executor.has_active_tasks()
    assert not actor_executor.has_queued_tasks()