code: def test_containers_from_envvar(
      container_from_envvar: t.Callable[[str], ConfigDictType]
  ):
      envvar = (
          'api_server.http.host="127.0.0.1" api_server.http.port=5000'
      )
      config = container_from_envvar(envvar)
      assert config["api_server"]["http"]["host"] == "127.0.0.1"
      assert config["api_server"]["http"]["port"] == 5000
  
file_path: BentoML/tests/unit/_internal/configuration/test_containers.py
imports: from __future__ import annotations
  import typing
  from typing import TYPE_CHECKING
  import pytest
  from bentoml.exceptions import BentoMLConfigException
label_desc: Use image node_id 2 for calling a global function with example usage: test_containers_from_envvar(container_from_envvar) without return types