code: def test_convert_datetime_type_non_pandas_types() -> None:
      assert (
          bus.convert_datetime_type(
              datetime.datetime(2018, 1, 3, 15, 37, 59, 922452)
          )
          == 1514993879922.452
      )
      assert (
          bus.convert_datetime_type(
              datetime.datetime(2018, 1, 3, 15, 37, 59)
          )
          == 1514993879000.0
      )
      assert (
          bus.convert_datetime_type(datetime.datetime(2016, 5, 11))
          == 1462924800000.0
      )
      assert (
          bus.convert_datetime_type(datetime.time(3, 54)) == 14040000.0
      )
      assert (
          bus.convert_datetime_type(datetime.date(2016, 5, 11))
          == 1462924800000.0
      )
      assert (
          bus.convert_datetime_type(np.datetime64("2016-05-11"))
          == 1462924800000.0
      )
  
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 12 for calling a global function with example usage: test_convert_datetime_type_non_pandas_types() without return types