code: def test_floats(self):
      primitive_func = SameAsPrevious().get_function()
      array = pd.Series([1.0, 2.5, 2.5, 3.0, 2.0], dtype="float64")
      answer = primitive_func(array)
      correct_answer = pd.Series([False, False, True, False, False])
      pd.testing.assert_series_equal(answer, correct_answer)
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_same_as_previous.py
imports: import numpy
  import pandas
  import pytest
  from featuretools.primitives import SameAsPrevious
label_desc: Use image node_id 3 for calling the TestSameAsPrevious obj's underlying member method code with example usage: obj.test_floats() without return types