code: def test_uses_calc_time():
      primitive = TimeSinceLast()
      primitive_h = TimeSinceLast(unit="hours")
      datetimes = pd.Series(
          [datetime(2015, 6, 6), datetime(2015, 6, 7)]
      )
      answer = 86400.0
      answer_h = 24.0
      assert answer == primitive(datetimes, time=datetime(2015, 6, 8))
      assert answer_h == primitive_h(
          datetimes, time=datetime(2015, 6, 8)
      )
  
file_path: featuretools/featuretools/tests/primitive_tests/test_primitive_base.py
imports: from datetime import datetime
  import numpy
  import pandas
  from pytest import raises
  from featuretools.primitives import Haversine, IsIn, IsNull, Max, TimeSinceLast
  from featuretools.primitives.base import TransformPrimitive
label_desc: Use image node_id 3 for calling a global function with example usage: test_uses_calc_time() without return types