code: def test_nans(self):
      primitive_func = self.primitive().get_function()
      data_nans = self.data.copy()
      data_nans = pd.concat(
          [data_nans, pd.Series([np.nan] * 5, dtype="float64")]
      )
      # more than 5 nans due to window
      assert sum(np.isnan(primitive_func(data_nans))) == 15
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_savgol_filter.py
imports: from math import floor
  import numpy
  import pandas
  from pytest import raises
  from featuretools.primitives import SavgolFilter
  from featuretools.tests.primitive_tests.utils import PrimitiveTestBase, find_applicable_primitives, valid_dfs
label_desc: Use image node_id 4 for calling the TestSavgolFilter obj's underlying member method code with example usage: obj.test_nans() without return types