code: def test_from_product_datetimeindex():
      dt_index = date_range("2000-01-01", periods=2)
      mi = MultiIndex.from_product([[1, 2], dt_index])
      etalon = construct_1d_object_array_from_listlike(
          [
              (1, Timestamp("2000-01-01")),
              (1, Timestamp("2000-01-02")),
              (2, Timestamp("2000-01-01")),
              (2, Timestamp("2000-01-02")),
          ]
      )
      tm.assert_numpy_array_equal(mi.values, etalon)
  
imports: from datetime import date, datetime
  import itertools
  import numpy
  import pytest
  from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
  import pandas
  from pandas import Index, MultiIndex, Series, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 28 for calling a global function with example usage: test_from_product_datetimeindex() without return types