code: def assert_benchmark_figures(figures, num, assessments, tasks):
      figure_num = 0
      for i, (assess, task_figs) in enumerate(figures.items()):
          assert assess == assessments[i].__class__.__name__
          for j, (task, figs) in enumerate(task_figs.items()):
              assert task == tasks[j].__class__.__name__
              figure_num += len(figs)
  
              for _, fig in figs.items():
                  assert type(fig) is plotly.graph_objects.Figure
  
      assert figure_num == num
  
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 1 for calling a global function with example usage: assert_benchmark_figures(figures, num, assessments, tasks) without return types