code: def test_valid_load_config_file(tmp_path: Path):
      config = tmp_path / "configuration.yaml"
      config.write_text("api_server:\n  port: 5000")
      assert load_config_file(config.__fspath__()) == {
          "api_server": {"port": 5000}
      }
  
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 8 for calling a global function with example usage: test_valid_load_config_file(tmp_path) without return types