code: def test_backward_configuration(
      container_from_file: t.Callable[[str], ConfigDictType],
      caplog: LogCaptureFixture,
  ):
      OLD_CONFIG = """\
  api_server:
    max_request_size: 8624612341
    port: 5000
    host: 0.0.0.0
  """
      with caplog.at_level(logging.WARNING):
          bentoml_cfg = container_from_file(OLD_CONFIG)
      assert all(
          i not in bentoml_cfg["api_server"]
          for i in ("max_request_size", "port", "host")
      )
      assert bentoml_cfg["api_server"]["http"]["host"] == "0.0.0.0"
      assert bentoml_cfg["api_server"]["http"]["port"] == 5000
      assert (
          "Field 'api_server.max_request_size' is deprecated and will be removed."
          in caplog.text
      )
  
file_path: BentoML/tests/unit/_internal/configuration/test_v1_migration.py
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  import pytest
  from bentoml.exceptions import BentoMLConfigException
label_desc: Use image node_id 1 for calling a global function with example usage: test_backward_configuration(container_from_file, caplog) without return types