code: def test_compose_and_dump_overrides(
      tmp_dir, suffix, overrides, expected
  ):
      from dvc.utils.hydra import compose_and_dump
  
      config_name = "config"
      output_file = tmp_dir / f"params.{suffix}"
      config_dir = hydra_setup(tmp_dir, "conf", "config")
      config_module = None
      compose_and_dump(
          output_file, config_dir, config_module, config_name, overrides
      )
      assert output_file.parse() == expected
  
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 4 for calling a global function with example usage: test_compose_and_dump_overrides(tmp_dir, suffix, overrides, expected) without return types