code: def test_invalid_sweep():
      from dvc.utils.hydra import get_hydra_sweeps
  
      with pytest.raises(InvalidArgumentError):
          get_hydra_sweeps({"params.yaml": ["foo=glob(*)"]})
  
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 10 for calling a global function with example usage: test_invalid_sweep() without return types