code: def test_deprecate_option_print_with_different_name(caplog):
      """Verify deprecation warning with different name (for nested options)."""
      config = Configuration()
      config.add_option(
          "option",
          option_type=str,
          default="hello",
          deprecate=dict(
              version="v1.0",
              alternative="None! T_T",
              name="nested.option",
          ),
      )
  
      # Access the deprecated option and trigger a warning.
      with caplog.at_level(
          logging.WARNING, logger="orion.core.io.config"
      ):
          assert config.option == "hello"
  
      assert caplog.record_tuples == [
          (
              "orion.core.io.config",
              logging.WARNING,
              "(DEPRECATED) Option `nested.option` will be removed in v1.0. Use `None! T_T` instead.",
          )
      ]
  
imports: import argparse
  import logging
  import os
  import pytest
  import yaml
  from orion.core.io.config import Configuration, ConfigurationError
label_desc: Use image node_id 41 for calling a global function with example usage: test_deprecate_option_print_with_different_name(caplog) without return types