code: def test_from_optuna_multi_objective() -> None:
      def objective(
          trial: "optuna.trial.Trial",
      ) -> tp.Tuple[float, float]:
          x = trial.suggest_float("x", -1, 1)
          y = trial.suggest_float("y", -1, 1)
          return x**2, y
  
      study = optuna.create_study(directions=["minimize", "minimize"])
      study.optimize(objective, n_trials=3)
  
      # Create a dataframe from the study.
      df = study.trials_dataframe()
      assert isinstance(df, pd.DataFrame)
      assert df.shape[0] == 3  # n_trials.
      xp = hip.Experiment.from_optuna(study)
      assert len(xp.datapoints) == 3
      xp.validate()
      xp._asdict()
  
imports: import tempfile
  import shutil
  from contextlib import contextmanager
  from unittest.mock import patch
  import typing
  import pytest
  import pandas
  import optuna
  import hiplot
label_desc: Use image node_id 5 for calling a global function with example usage: test_from_optuna_multi_objective() and returns: unknown,  y