code: def test_backward_from_envvar(
      container_from_envvar: t.Callable[[str], ConfigDictType],
      caplog: LogCaptureFixture,
  ):
      envvar = 'version=1 tracing.type="jaeger" tracing.jaeger.address="localhost" tracing.jaeger.port=6831 tracing.sample_rate=0.7'
      with caplog.at_level(logging.WARNING):
          bentoml_cfg = container_from_envvar(envvar)
      assert bentoml_cfg["version"] == 1
      assert bentoml_cfg["tracing"]["exporter_type"] == "jaeger"
  
      assert (
          "Field 'tracing.jaeger.address' is deprecated and has been renamed to 'tracing.jaeger.thrift.agent_host_name'"
          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 2 for calling a global function with example usage: test_backward_from_envvar(container_from_envvar, caplog) without return types