code: def test_raises(self):
      with pytest.raises(ValueError):
          SameAsPrevious(fill_method="invalid")
  
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 11 for calling the TestSameAsPrevious obj's underlying member method code with example usage: obj.test_raises() without return types