code: def test_deprecated_package_header_keywords(
      config_name: Optional[str],
      overrides: List[str],
      package_header: str,
      expected: DefaultsTreeNode,
      hydra_restore_singletons: Any,
  ) -> None:
      msg = dedent(
          f"""\
          In '{config_name}': Usage of deprecated keyword in package header '# @package {package_header}'.
          See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/changes_to_package_header for more information"""
      )
  
      version.setbase("1.1")
  
      with warns(UserWarning, match=re.escape(msg)):
          _test_defaults_tree_impl(
              config_name=config_name,
              input_overrides=overrides,
              expected=expected,
          )
  
imports: import re
  from textwrap import dedent
  from typing import Any, Dict, List, Optional
  from pytest import mark, param, raises, warns
  from hydra import version
  from hydra.core.default_element import ConfigDefault, DefaultsTreeNode, GroupDefault, VirtualRoot
  from hydra.core.plugins import Plugins
  from hydra.errors import ConfigCompositionException
  from hydra.test_utils.test_utils import chdir_hydra_root
  from tests.defaults_list import _test_defaults_tree_impl
label_desc: Use image node_id 40 for calling a global function with example usage: test_deprecated_package_header_keywords(config_name, overrides, package_header, expected, hydra_restore_singletons) without return types