code: def test_enabled_dates(
      self, bokeh_model_page: BokehModelPage
  ) -> None:
      dp = DatePicker(
          title="Select date",
          value=date(2019, 9, 20),
          min_date=date(2019, 9, 1),
          max_date="2019-09-30",
          enabled_dates=[
              "2019-09-14",
              ("2019-09-16", date(2019, 9, 18)),
          ],
      )
  
      page = bokeh_model_page(dp)
  
      el = find_element_for(page.driver, dp, "label")
      el.click()
  
      # not enabled
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 13, 2019"]'
      )
      assert "flatpickr-disabled" in el.get_attribute("class")
  
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 14, 2019"]'
      )
      assert "flatpickr-disabled" not in el.get_attribute("class")
  
      # not enabled
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 15, 2019"]'
      )
      assert "flatpickr-disabled" in el.get_attribute("class")
  
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 16, 2019"]'
      )
      assert "flatpickr-disabled" not in el.get_attribute("class")
  
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 17, 2019"]'
      )
      assert "flatpickr-disabled" not in el.get_attribute("class")
  
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 18, 2019"]'
      )
      assert "flatpickr-disabled" not in el.get_attribute("class")
  
      # not enabled
      el = find_element_for(
          page.driver, dp, 'span[aria-label="September 19, 2019"]'
      )
      assert "flatpickr-disabled" in el.get_attribute("class")
  
      assert page.has_no_console_errors()
  
file_path: bokeh/tests/integration/widgets/test_datepicker.py
imports: from __future__ import annotations
  import pytest
  from datetime import date
  from bokeh.layouts import column
  from bokeh.models import ColumnDataSource, CustomJS, DatePicker, Plot, Range1d, Scatter
  from tests.support.plugins.project import BokehModelPage, BokehServerPage
  from tests.support.util.selenium import RECORD, find_element_for
label_desc: Use image node_id 5 for calling the Test_DatePicker obj's underlying member method code with example usage: obj.test_enabled_dates(bokeh_model_page) without return types