code: def test_invalid_load_config_file():
      with pytest.raises(BentoMLConfigException) as e:
          load_config_file("/tmp/nonexistent.yaml")
      assert (
          "Configuration file /tmp/nonexistent.yaml not found."
          in str(e.value)
      )
  
      with pytest.raises(BentoMLConfigException) as e:
          load_config_file("\\tmp\\invalid.yaml")
      assert "Configuration file \\tmp\\invalid.yaml not found." in str(
          e.value
      )
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING
  import pytest
  from bentoml._internal.configuration.helpers import expand_env_var_in_values
  from bentoml._internal.configuration.helpers import flatten_dict
  from bentoml._internal.configuration.helpers import is_valid_ip_address
  from bentoml._internal.configuration.helpers import load_config_file
  from bentoml._internal.configuration.helpers import rename_fields
  from bentoml.exceptions import BentoMLConfigException
label_desc: Use image node_id 9 for calling a global function with example usage: test_invalid_load_config_file() without return types