code: def test_experiments_stop(dvc, scm, mocker):
      cli_args = parse_args(
          [
              "queue",
              "stop",
              "--kill",
          ]
      )
      assert cli_args.func == CmdQueueStop
  
      cmd = cli_args.func(cli_args)
      m = mocker.patch(
          "dvc.repo.experiments.queue.celery.LocalCeleryQueue.shutdown",
      )
  
      assert cmd.run() == 0
      m.assert_called_once_with(kill=True)
  
file_path: dvc/tests/unit/command/test_queue.py
imports: import pytest
  from dvc.cli import parse_args
  from dvc.commands.queue.kill import CmdQueueKill
  from dvc.commands.queue.logs import CmdQueueLogs
  from dvc.commands.queue.remove import CmdQueueRemove
  from dvc.commands.queue.start import CmdQueueStart
  from dvc.commands.queue.status import CmdQueueStatus
  from dvc.commands.queue.stop import CmdQueueStop
  from dvc.exceptions import InvalidArgumentError
label_desc: Use image node_id 6 for calling a global function with example usage: test_experiments_stop(dvc, scm, mocker) without return types