code: def test_legend_label(self):
      overlay = Overlay(
          [
              Curve(range(10), label=f"Data {i}").opts(
                  subcoordinate_y=True
              )
              for i in range(2)
          ]
      )
      plot = bokeh_renderer.get_plot(overlay)
      legend_labels = [
          l.label["value"] for l in plot.state.legend[0].items
      ]
      # the legend displays the labels
      assert legend_labels == ["Data 0", "Data 1"]
  
imports: import numpy
  import pytest
  from bokeh.models.tools import WheelZoomTool, ZoomInTool, ZoomOutTool
  from holoviews.core import Overlay
  from holoviews.element import Curve
  from holoviews.element.annotation import VSpan
  from .test_plot import TestBokehPlot, bokeh_renderer
label_desc: Use image node_id 8 for calling the TestSubcoordinateY obj's underlying member method code with example usage: obj.test_legend_label() without return types