code: def test_celery_queue_kill_invalid(test_queue, mocker, force):
      mock_entry_foo = mocker.Mock(stash_rev="foo")
      mock_entry_bar = mocker.Mock(stash_rev="bar")
  
      mocker.patch.object(
          test_queue,
          "match_queue_entry_by_name",
          return_value={
              "bar": mock_entry_bar,
              "foo": mock_entry_foo,
              "foobar": None,
          },
      )
  
      kill_mock = mocker.patch.object(test_queue, "_kill_entries")
  
      with pytest.raises(UnresolvedExpNamesError):
          test_queue.kill(["bar", "foo", "foobar"], force=force)
      kill_mock.assert_called_once_with(
          {mock_entry_foo: "foo", mock_entry_bar: "bar"}, force
      )
  
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 7 for calling a global function with example usage: test_celery_queue_kill_invalid(test_queue, mocker, force) without return types