code: def test_shutdown(test_queue, mocker):
      shutdown_spy = mocker.patch("celery.app.control.Control.shutdown")
      test_queue.shutdown()
      shutdown_spy.assert_called_once()
  
file_path: dvc/tests/unit/repo/experiments/queue/test_celery.py
imports: import time
  import pytest
  from celery import shared_task
  from celery.result import AsyncResult
  from dvc.exceptions import DvcException
  from dvc.repo.experiments.exceptions import UnresolvedExpNamesError
  from dvc.repo.experiments.queue.base import QueueDoneResult
  from dvc.repo.experiments.queue.exceptions import CannotKillTasksError
label_desc: Use image node_id 3 for calling a global function with example usage: test_shutdown(test_queue, mocker) without return types