code: def test_time_type_check_order(dates_df):
      dates_df.ww.init(
          name="dates_table",
          index="backwards_order",
          time_index="random_order",
      )
      es = EntitySet("es")
  
      error = "dates_table time index is Datetime type which differs from other entityset time indexes"
      with pytest.raises(TypeError, match=error):
          es.add_dataframe(
              dates_df,
              secondary_time_index={
                  "repeating_dates": ["random_order", "special"]
              },
          )
  
      assert "secondary_time_index" not in dates_df.ww.metadata
  
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from woodwork.exceptions import TypeConversionError
  from woodwork.logical_types import Boolean, Categorical, Datetime, Double, Integer, NaturalLanguage
  from featuretools.entityset.entityset import LTI_COLUMN_NAME, EntitySet
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.gen_utils import Library, import_or_none, is_instance
label_desc: Use image node_id 16 for calling a global function with example usage: test_time_type_check_order(dates_df) without return types