class_docstr: Test Benchmark
docstr: Test to setup studies for benchmark
docstr_tok: ["Test","to","setup","studies","for","benchmark"]
code: def test_setup_studies(self, benchmark):
      """Test to setup studies for benchmark"""
      with OrionState():
          benchmark.setup_studies()
  
          assert (
              str(benchmark.studies)
              == "[Study(assessment=AverageResult, task=RosenBrock, algorithms=[random,tpe]), "
              "Study(assessment=AverageResult, task=CarromTable, algorithms=[random,tpe]), "
              "Study(assessment=AverageRank, task=RosenBrock, algorithms=[random,tpe]), "
              "Study(assessment=AverageRank, task=CarromTable, algorithms=[random,tpe])]"
          )
  
      assert len(benchmark.studies) == 4
  
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 2 for calling the TestBenchmark obj's underlying member method code with example usage: obj.test_setup_studies(benchmark) without return types