code: def test_compose_and_dump_dir_module(
      tmp_dir,
      config_subdir,
      config_module,
      config_content,
      error_context,
  ):
      from dvc.utils.hydra import compose_and_dump
  
      output_file = tmp_dir / "params.yaml"
      config_name = "config"
      config_dir = hydra_setup_dir_basic(
          tmp_dir, config_subdir, config_name, config_content
      )
  
      with error_context:
          compose_and_dump(
              output_file, config_dir, config_module, config_name, []
          )
          assert output_file.parse() == config_content
  
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 6 for calling a global function with example usage: test_compose_and_dump_dir_module(tmp_dir, config_subdir, config_module, config_content, error_context) without return types