code: def _create_trial(
      value: float, cv_scores: list[float]
  ) -> FrozenTrial:
      return create_trial(
          params={},
          distributions={},
          value=value,
          system_attrs={_CROSS_VALIDATION_SCORES_KEY: cv_scores},
      )
  
file_path: optuna/tests/terminator_tests/test_erroreval.py
imports: from __future__ import annotations
  import math
  import pytest
  from optuna.study.study import create_study
  from optuna.terminator import CrossValidationErrorEvaluator
  from optuna.terminator import report_cross_validation_scores
  from optuna.terminator import StaticErrorEvaluator
  from optuna.terminator.erroreval import _CROSS_VALIDATION_SCORES_KEY
  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_trial(value, cv_scores) and returns: create_trial