code: def fixture_container_from_file(
      tmp_path: Path,
  ) -> t.Callable[[str], ConfigDictType]:
      def inner(config: str) -> ConfigDictType:
          path = tmp_path / "configuration.yaml"
          path.write_text(config)
          return BentoMLConfiguration(
              override_config_file=path.__fspath__()
          ).to_dict()
  
      return inner
  
imports: from __future__ import annotations
  import typing
  from typing import TYPE_CHECKING
  import pytest
  from bentoml._internal.configuration.containers import BentoMLConfiguration
label_desc: Use image node_id 1 for calling a global function with example usage: fixture_container_from_file(tmp_path) and returns: inner, BentoMLConfiguration