code: def test_load_config_file_produces_true_warning(
      tmp_path: Path,
  ) -> None:
      config_path = tmp_path.joinpath("config.yaml")
      config_path.write_text("an_invalid_key: 2")
      with pytest.raises(ValueError, match="an_invalid_key"):
          get_config(str(config_path))
  
imports: from pathlib import Path
  import pytest
  from tests.configs import get_config
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_config_file_produces_true_warning(tmp_path) without return types