code: def test_add_last_time_index(es):
      es.add_last_time_indexes(["products"])
  
      assert "last_time_index" in es["products"].ww.metadata
  
      assert (
          es["products"].ww.metadata["last_time_index"]
          == LTI_COLUMN_NAME
      )
      assert LTI_COLUMN_NAME in es["products"]
      assert (
          "last_time_index"
          in es["products"].ww.semantic_tags[LTI_COLUMN_NAME]
      )
      assert isinstance(
          es["products"].ww.logical_types[LTI_COLUMN_NAME], Datetime
      )
  
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 22 for calling a global function with example usage: test_add_last_time_index(es) without return types