code: def test_inf(self):
      primitive_instance = self.primitive()
      primitive_func = primitive_instance.get_function()
  
      x = pd.Series(range(10))
      x = pd.concat([x, pd.Series([np.inf])])
      assert primitive_func(x) == 0
  
      x = pd.Series(range(10))
      x = pd.concat([x, pd.Series([np.NINF])])
      assert primitive_func(x) == 10
  
      x = pd.Series(range(10))
      x = pd.concat([x, pd.Series([np.NINF, np.inf, np.inf])])
      assert np.isnan(primitive_func(x))
  
file_path: featuretools/featuretools/tests/primitive_tests/aggregation_primitive_tests/test_num_consecutive.py
imports: import numpy
  import pandas
  from featuretools.primitives import NumConsecutiveGreaterMean, NumConsecutiveLessMean
label_desc: Use image node_id 6 for calling the TestNumConsecutiveGreaterMean obj's underlying member method code with example usage: obj.test_inf() without return types