code: def _create_trial(
      mo_trial: "multi_objective.trial.FrozenMultiObjectiveTrial",
  ) -> FrozenTrial:
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", ExperimentalWarning)
          trial = create_trial(
              state=mo_trial.state,
              values=mo_trial.values,  # type: ignore
              params=mo_trial.params,
              distributions=mo_trial.distributions,
              user_attrs=mo_trial.user_attrs,
              system_attrs=mo_trial.system_attrs,
          )
      return trial
  
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 2 for calling a global function with example usage: _create_trial(mo_trial) and returns: trial