code: def _assert_plot_contains(legend_label, plotly_json):
      assert legend_label in [
          data_object.get("legendgroup", None)
          for data_object in json.loads(plotly_json)["data"]
      ]
  
imports: import json
  import os
  import pytest
  from falcon import testing
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import Branin, CarromTable, EggHolder
  from orion.serving.webapi import WebApi
  from orion.storage.base import setup_storage
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_plot_contains(legend_label, plotly_json) without return types