code: def test_lti_already_has_last_time_column_name(es):
      col = es["customers"].ww.pop("loves_ice_cream")
      col.name = LTI_COLUMN_NAME
  
      es["customers"].ww[LTI_COLUMN_NAME] = col
  
      assert LTI_COLUMN_NAME in es["customers"].columns
      assert isinstance(
          es["customers"].ww.logical_types[LTI_COLUMN_NAME], Boolean
      )
  
      error = (
          "Cannot add a last time index on DataFrame with an existing "
          f"'{LTI_COLUMN_NAME}' column. Please rename '{LTI_COLUMN_NAME}'."
      )
      with pytest.raises(ValueError, match=error):
          es.add_last_time_indexes(["customers"])
  
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 24 for calling a global function with example usage: test_lti_already_has_last_time_column_name(es) without return types