code: def test_dir_path_is_file(tmpdir: Path) -> None:  # noqa: D
      file_path = os.path.join(tmpdir, "file.txt")
      with open(file_path, "w") as f:
          f.write("file contents!")
  
      with pytest.raises(ValueError):
          ConfigFileRenderer(file_path, False)
  
file_path: metricflow/metricflow/test/inference/renderer/test_config_file.py
imports: from __future__ import annotations
  import os
  from pathlib import Path
  import pytest
  from ruamel.yaml import YAML
  from metricflow.dataflow.sql_column import SqlColumn
  from metricflow.inference.models import InferenceResult, InferenceSignalType
  from metricflow.inference.renderer.config_file import ConfigFileRenderer
label_desc: Use image node_id 2 for calling a global function with example usage: test_dir_path_is_file(tmpdir) without return types