code: def test_report_cross_validation_scores(direction: str) -> None:
      scores = [1.0, 2.0]
  
      study = create_study(direction=direction)
      trial = study.ask()
      report_cross_validation_scores(trial, scores)
      study.tell(trial, 0.0)
  
      assert (
          study.trials[0].system_attrs[_CROSS_VALIDATION_SCORES_KEY]
          == 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 4 for calling a global function with example usage: test_report_cross_validation_scores(direction) without return types