code: def _convert_deprecated_args(
      kwargs: tp.Dict[str, Any], deprecated_args: tp.Mapping[str, str]
  ) -> None:
      for arg in list(kwargs):
          new_arg = deprecated_args.get(arg)
          if not new_arg:
              continue
          kwargs[new_arg] = kwargs.pop(arg)
          warnings.warn(
              f"Setting '{arg}' is deprecated. Use '{new_arg}' instead."
          )
  
file_path: submitit/submitit/auto/auto.py
imports: import typing
  import warnings
  from pathlib import Path
  from typing import Any, List, Optional, Type, Union
  from ..core import plugins
  from ..core.core import Executor, Job
  from ..core.utils import DelayedSubmission
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_deprecated_args(kwargs, deprecated_args) without return types