code: def test_deselect(pytester: Pytester) -> None:
      pytester.makepyfile(
          test_a="""
          import pytest
  
          def test_a1(): pass
  
          @pytest.mark.parametrize('b', range(3))
          def test_a2(b): pass
  
          class TestClass:
              def test_c1(self): pass
  
              def test_c2(self): pass
      """
      )
      result = pytester.runpytest(
          "-v",
          "--deselect=test_a.py::test_a2[1]",
          "--deselect=test_a.py::test_a2[2]",
          "--deselect=test_a.py::TestClass::test_c1",
      )
      assert result.ret == 0
      result.stdout.fnmatch_lines(["*3 passed, 3 deselected*"])
      for line in result.stdout.lines:
          assert not line.startswith(
              ("test_a.py::test_a2[1]", "test_a.py::test_a2[2]")
          )
  
imports: import pytest
  from _pytest.config import ExitCode
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 5 for calling a global function with example usage: test_deselect(pytester) without return types