code: def test_convert_datetime_array() -> None:
      array = np.array(
          [
              "2018-01-03T15:37:59",
              "2018-01-03T15:37:59.922452",
              "2016-05-11",
              "NaT",
          ],
          dtype="datetime64",
      )
      assert np.array_equal(
          bus.convert_datetime_array(array),
          np.array(
              [
                  1514993879000.0,
                  1514993879922.452,
                  1462924800000.0,
                  np.nan,
              ],
              dtype="float64",
          ),
          equal_nan=True,
      )
  
      array = np.array(
          [datetime.date(2023, 12, 15), datetime.date(2023, 12, 16)]
      )
      assert np.array_equal(
          bus.convert_datetime_array(array),
          np.array([1702598400000.0, 1702684800000.0], dtype="float64"),
      )
  
imports: from __future__ import annotations
  import pytest
  import datetime
  from math import inf, nan
  import numpy
  import pandas
  import pytz
  from tests.support.util.env import envset
  import bokeh.util.serialization
label_desc: Use image node_id 15 for calling a global function with example usage: test_convert_datetime_array() without return types