code: def test_simple():
      """Test a end 2 end exucution of benchmark"""
      repetitions = 2
      max_trials = 10
      assessments = [
          AverageResult(repetitions),
          AverageRank(repetitions),
      ]
      tasks = [
          Branin(max_trials),
          BirdLike(max_trials),
      ]
  
      storage = setup_storage()
      benchmark = get_or_create_benchmark(
          storage,
          name="bm001",
          algorithms=algorithms,
          targets=[{"assess": assessments, "task": tasks}],
      )
  
      benchmark.process()
  
      assert len(benchmark.studies) == len(assessments) * len(tasks)
  
      status = benchmark.status()
  
      experiments = benchmark.get_experiments()
  
      assert len(experiments) == len(algorithms) * repetitions * len(
          assessments
      ) * len(tasks)
  
      assert len(status) == len(algorithms) * len(assessments) * len(
          tasks
      )
  
      figures = benchmark.analysis()
  
      assert_benchmark_figures(figures, 4, assessments, tasks)
  
      storage = setup_storage()
      benchmark = get_or_create_benchmark(storage, name="bm001")
      figures = benchmark.analysis()
  
      assert_benchmark_figures(figures, 4, assessments, tasks)
      benchmark.close()
  
file_path: orion/tests/functional/benchmark/test_benchmark_flow.py
imports: import plotly
  import pytest
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import BenchmarkTask, Branin
  from orion.storage.base import setup_storage
label_desc: Use image node_id 2 for calling a global function with example usage: test_simple() without return types