class_docstr: Test Study
docstr: Test to get the ploty figure of a study
docstr_tok: ["Test","to","get","the","ploty","figure","of","a","study"]
code: def test_analysis(
      self,
      orionstate,
      study,
      study_experiments_config,
  ):
      """Test to get the ploty figure of a study"""
      experiments = create_study_experiments(
          orionstate, **study_experiments_config
      )
  
      study.experiments_info = list(enumerate(experiments))
  
      figure = study.analysis()
  
      assert type(figure["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 6 for calling the TestStudy obj's underlying member method code with example usage: obj.test_analysis(orionstate, study, study_experiments_config) without return types