code: def test_legacy_hydra_overrides_from_primary_config_2(
      config_name: str,
      overrides: List[str],
      expected: DefaultsTreeNode,
      recwarn: Any,
  ) -> None:
      """
      Override two Hydra config groups using legacy notation
      """
  
      _test_defaults_tree_impl(
          config_name=config_name,
          input_overrides=overrides,
          expected=expected,
          prepend_hydra=True,
      )
  
      assert len(recwarn) == 2
      assert (
          "Invalid overriding of hydra/help:"
          in recwarn.list[0].message.args[0]
      )
      assert (
          "Invalid overriding of hydra/output:"
          in recwarn.list[1].message.args[0]
      )
  
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 12 for calling a global function with example usage: test_legacy_hydra_overrides_from_primary_config_2(config_name, overrides, expected, recwarn) without return types