code: def test_handling_alias_metrics(
      aliases: List[str], expect: str
  ) -> None:
      if len(aliases) > 0:
          for alias in aliases:
              lgbm_params = {"metric": alias}
              _handling_alias_metrics(lgbm_params)
              assert lgbm_params["metric"] == expect
      else:
          lgbm_params = {}
          _handling_alias_metrics(lgbm_params)
          assert lgbm_params == {}
  
file_path: optuna/tests/integration_tests/lightgbm_tuner_tests/test_alias.py
imports: from typing import List
  import pytest
  from optuna.integration._lightgbm_tuner.alias import _handling_alias_metrics
  from optuna.integration._lightgbm_tuner.alias import _handling_alias_parameters
label_desc: Use image node_id 5 for calling a global function with example usage: test_handling_alias_metrics(aliases, expect) without return types