code: def test_multiobjective_raises_on_name_mismatch(
      tmpdir: py.path.local, metrics: List[str]
  ) -> None:
      tracking_uri = f"file:{tmpdir}"
      mlflc = MLflowCallback(
          tracking_uri=tracking_uri, metric_name=metrics
      )
      study = optuna.create_study(
          study_name="my_study", directions=["minimize", "maximize"]
      )
  
      with pytest.raises(ValueError):
          study.optimize(
              _multiobjective_func, n_trials=1, callbacks=[mlflc]
          )
  
imports: from typing import Callable
  from typing import List
  from typing import Optional
  from typing import Tuple
  from typing import Union
  import numpy
  import py
  import pytest
  import optuna
  from optuna._imports import try_import
  from optuna.integration.mlflow import MLflowCallback
label_desc: Use image node_id 22 for calling a global function with example usage: test_multiobjective_raises_on_name_mismatch(tmpdir, metrics) without return types