code: def create_study_2d() -> Study:
      study = optuna.create_study(directions=["minimize", "minimize"])
  
      study.enqueue_trial({"x": 1, "y": 2})
      study.enqueue_trial({"x": 1, "y": 1})
      study.enqueue_trial({"x": 0, "y": 2})
      study.enqueue_trial({"x": 1, "y": 0})
      study.optimize(
          lambda t: [
              t.suggest_int("x", 0, 2),
              t.suggest_int("y", 0, 2),
          ],
          n_trials=4,
      )
      return study
  
imports: from __future__ import annotations
  from io import BytesIO
  from typing import Any
  from typing import Callable
  from typing import Sequence
  import warnings
  import pytest
  import optuna
  from optuna import create_study
  from optuna import create_trial
  from optuna.distributions import FloatDistribution
  from optuna.study.study import Study
  from optuna.trial import FrozenTrial
  from optuna.visualization import plot_pareto_front
  import optuna.visualization._pareto_front
  from optuna.visualization._pareto_front import _get_pareto_front_info
  from optuna.visualization._pareto_front import _ParetoFrontInfo
  from optuna.visualization._plotly_imports import go
  from optuna.visualization._utils import COLOR_SCALE
  from optuna.visualization.matplotlib._matplotlib_imports import plt
  import optuna.visualization.matplotlib._pareto_front
label_desc: Use image node_id 2 for calling a global function with example usage: create_study_2d() and returns: study