code: def test_mixed(self):
      primitive_func = SameAsPrevious().get_function()
      array = pd.Series([1, 2, 2.0, 3, 2.0], dtype="float64")
      answer = primitive_func(array)
      correct_answer = pd.Series([False, False, True, False, False])
      np.testing.assert_array_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 4 for calling the TestSameAsPrevious obj's underlying member method code with example usage: obj.test_mixed() without return types