code: def test_approx_rule1():
      # for rule = 1
      x, y = approx(table, tablep, stat, rule=1)
      assert_array_almost_equal(x, c(1.01))
      assert_array_almost_equal(y, c(np.nan))
  
file_path: pmdarima/pmdarima/arima/tests/test_approx.py
imports: from pmdarima.arima.approx import approx, _regularize
  from pmdarima.utils.array import c
  from pmdarima.arima.stationarity import ADFTest
  from numpy.testing import assert_array_almost_equal
  import numpy
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_approx_rule1() without return types