code: def test_Legend() -> None:
      legend = Legend()
      assert legend.location == "top_right"
      assert legend.orientation == "vertical"
      assert legend.ncols == "auto"
      assert legend.nrows == "auto"
      assert legend.title is None
      assert legend.title_location == "above"
      assert legend.title_standoff == 5
      assert legend.label_standoff == 5
      assert legend.label_height == 20
      assert legend.label_width == 20
      assert legend.glyph_height == 20
      assert legend.glyph_width == 20
      assert legend.padding == 10
      assert legend.spacing == 3
      assert legend.margin == 10
      assert legend.items == []
      assert legend.click_policy == "none"
      assert legend.item_background_policy == "none"
      check_line_properties(legend, "border_", "#e5e5e5", 1.0, 0.5)
      check_text_properties(
          legend, "label_", "13px", "middle", scalar=True
      )
      check_fill_properties(legend, "background_", "#ffffff", 0.95)
      check_fill_properties(legend, "item_background_", "#f1f1f1", 0.8)
      check_properties_existence(
          legend,
          [
              *ANNOTATION,
              "location",
              "orientation",
              "ncols",
              "nrows",
              "title",
              "title_location",
              "title_standoff",
              "label_standoff",
              "label_height",
              "label_width",
              "glyph_height",
              "glyph_width",
              "margin",
              "padding",
              "spacing",
              "items",
              "click_policy",
              "item_background_policy",
          ],
          prefix("label_", TEXT),
          prefix("title_", TEXT),
          prefix("border_", LINE),
          prefix("background_", FILL),
          prefix("item_background_", FILL),
          prefix("inactive_", FILL),
      )
  
imports: from __future__ import annotations
  import pytest
  from datetime import datetime
  from unittest import mock
  from bokeh.core.properties import field, value
  from bokeh.core.validation import check_integrity, process_validation_issues
  from bokeh.models import Arrow, ArrowHead, Band, BoxAnnotation, ColorBar, ColumnDataSource, GlyphRenderer, Label, LabelSet, Legend, LegendItem, LinearColorMapper, Node, PolyAnnotation, Slope, Span, Title, Whisker
  from bokeh.util.serialization import convert_datetime_type
  from _util_models import ABOVE_FILL, ABOVE_HATCH, ANGLE, BELOW_FILL, BELOW_HATCH, FILL, HATCH, HOVER_FILL, HOVER_HATCH, HOVER_LINE, LINE, TEXT, check_fill_properties, check_hatch_properties, check_line_properties, check_properties_existence, check_text_properties, prefix
label_desc: Use image node_id 1 for calling a global function with example usage: test_Legend() without return types