code: def test_deprecated_argument(tmp_path: Path, monkeypatch) -> None:
      monkeypatch.setattr(
          debug.DebugExecutor, "_valid_parameters", lambda: {"blabla"}
      )
      with test_slurm.mocked_slurm():
          executor = auto.AutoExecutor(folder=tmp_path)
      assert executor.cluster == "slurm"
  
      # debug 'blabla' parameter is ignored
      with pytest.warns(UserWarning, match=r"blabla.*debug_blabla"):
          executor.update_parameters(mem_gb=2, blabla="blublu")
  
file_path: submitit/submitit/auto/test_auto.py
imports: import sys
  from pathlib import Path
  import pytest
  from ..local import debug
  from ..slurm import test_slurm
  from .None import auto
label_desc: Use image node_id 7 for calling a global function with example usage: test_deprecated_argument(tmp_path, monkeypatch) without return types