code: def _create_study(
      mo_study: "multi_objective.study.MultiObjectiveStudy",
  ) -> "optuna.Study":
      study = create_study(
          storage=mo_study._storage,
          sampler=_MultiObjectiveSamplerAdapter(mo_study.sampler),
          pruner=NopPruner(),
          study_name="_motpe-"
          + mo_study._storage.get_study_name_from_id(
              mo_study._study_id
          ),
          directions=mo_study.directions,
          load_if_exists=True,
      )
      for mo_trial in mo_study.trials:
          with warnings.catch_warnings():
              warnings.simplefilter("ignore", ExperimentalWarning)
              study.add_trial(_create_trial(mo_trial))
      return study
  
imports: from typing import Any
  from typing import Callable
  from typing import Dict
  from typing import Optional
  import warnings
  import numpy
  import optuna
  from optuna import multi_objective
  from optuna._deprecated import deprecated_class
  from optuna.distributions import BaseDistribution
  from optuna.exceptions import ExperimentalWarning
  from optuna.multi_objective.samplers import _MultiObjectiveSamplerAdapter
  from optuna.multi_objective.samplers import BaseMultiObjectiveSampler
  from optuna.pruners import NopPruner
  from optuna.samplers import MOTPESampler
  from optuna.samplers._tpe.multi_objective_sampler import _default_weights_above
  from optuna.samplers._tpe.multi_objective_sampler import default_gamma
  from optuna.study import create_study
  from optuna.trial import create_trial
  from optuna.trial import FrozenTrial
label_desc: Use image node_id 1 for calling a global function with example usage: _create_study(mo_study) and returns: study