code: def test_per_predict_nans():
      """
      Tests that the predictions are not nans
      """
      model = pf.GPNARX(data=data, ar=2, kernel=pf.Periodic())
      x = model.fit()
      x.summary()
      assert (
          len(
              model.predict(h=5).values[
                  np.isnan(model.predict(h=5).values)
              ]
          )
          == 0
      )
  
imports: import numpy
  import pyflux
label_desc: Use image node_id 35 for calling a global function with example usage: test_per_predict_nans() without return types