class_docstr: Test Study
docstr: Test to get experiments of a study
docstr_tok: ["Test","to","get","experiments","of","a","study"]
code: def test_experiments(
      self, orionstate, study, study_experiments_config, task_number
  ):
      """Test to get experiments of a study"""
      algo_num = len(study_experiments_config["algorithms"])
      experiments = create_study_experiments(
          orionstate, **study_experiments_config
      )
  
      study.experiments_info = list(enumerate(experiments))
  
      experiments = study.get_experiments()
  
      assert (
          len(experiments)
          == study_experiments_config["task_number"] * algo_num
      )
      assert isinstance(experiments[0][1], ExperimentClient)
  
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 7 for calling the TestStudy obj's underlying member method code with example usage: obj.test_experiments(orionstate, study, study_experiments_config, task_number) without return types