code: def test_compose_and_dump_resolves_interpolation(tmp_dir):
      """Regression test for https://github.com/iterative/dvc/issues/9196"""
      from dvc.utils.hydra import compose_and_dump
  
      config = tmp_dir / "conf" / "config.yaml"
      config.parent.mkdir()
      config.dump(
          {"data": {"root": "path/to/root", "raw": "${.root}/raw"}}
      )
      output_file = tmp_dir / "params.yaml"
      compose_and_dump(
          output_file, str(config.parent), None, "config", []
      )
      assert output_file.parse() == {
          "data": {"root": "path/to/root", "raw": "path/to/root/raw"}
      }
  
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 8 for calling a global function with example usage: test_compose_and_dump_resolves_interpolation(tmp_dir) without return types