class_docstr: Test assessment AverageRank
docstr: Test assessment plot format
docstr_tok: ["Test","assessment","plot","format"]
code: def test_figure_layout(self, orionstate, study_experiments_config):
      """Test assessment plot format"""
      ar1 = AverageRank()
  
      experiments = create_study_experiments(
          orionstate, **study_experiments_config
      )
      figure = ar1.analysis("task_name", enumerate(experiments))
  
      assert_rankings_plot(
          figure["rankings"],
          [
              list(algorithm.keys())[0]
              for algorithm in study_experiments_config["algorithms"]
          ],
          balanced=study_experiments_config["max_trial"],
          with_avg=True,
      )
  
file_path: orion/tests/unittests/benchmark/test_assessments.py
imports: import plotly
  import pytest
  from orion.benchmark.assessment import AverageRank, AverageResult, ParallelAssessment
  from orion.testing import create_experiment, create_study_experiments
  from orion.testing.plotting import assert_durations_plot, assert_rankings_plot, assert_regrets_plot, asset_parallel_assessment_plot
label_desc: Use image node_id 3 for calling the TestAverageRank obj's underlying member method code with example usage: obj.test_figure_layout(orionstate, study_experiments_config) without return types