class_docstr: Test Benchmark
docstr: Test to analysis benchmark result
docstr_tok: ["Test","to","analysis","benchmark","result"]
code: def test_analysis(
      self, orionstate, benchmark, study, study_experiments_config
  ):
      """Test to analysis benchmark result"""
      experiments = create_study_experiments(
          orionstate, **study_experiments_config
      )
      study.experiments_info = list(enumerate(experiments))
  
      benchmark.studies = [study]
  
      figures = benchmark.analysis()
  
      assert len(figures) == 1
      assert (
          type(figures[study.assess_name][study.task_name]["regrets"])
          is plotly.graph_objects.Figure
      )
  
imports: import plotly
  import pytest
  import orion.core.io.experiment_builder
  from orion.benchmark import Benchmark, Study
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.task import CarromTable, RosenBrock
  from orion.client.experiment import ExperimentClient
  from orion.testing import OrionState, create_study_experiments
label_desc: Use image node_id 5 for calling the TestBenchmark obj's underlying member method code with example usage: obj.test_analysis(orionstate, benchmark, study, study_experiments_config) without return types