code: def test_invalid_overrides(tmp_dir, overrides):
      from dvc.utils.hydra import apply_overrides
  
      params_file = tmp_dir / "params.yaml"
      params_file.dump(
          {
              "foo": [{"bar": 1}, {"baz": 2}],
              "goo": {"bag": 3.0},
              "lorem": False,
          }
      )
      with pytest.raises(InvalidArgumentError):
          apply_overrides(path=params_file.name, overrides=overrides)
  
file_path: dvc/tests/func/utils/test_hydra.py
imports: from contextlib import nullcontext
  import pytest
  from dvc.exceptions import InvalidArgumentError
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_overrides(tmp_dir, overrides) without return types