code: def test_AutoARIMA_class():
      train, test = wineind[:125], wineind[125:]
      mod = pm.AutoARIMA(maxiter=5)
      mod.fit(train)
  
      endog = mod.model_.arima_res_.data.endog
      assert_array_almost_equal(train, endog)
  
      # update
      mod.update(test, maxiter=2)
      new_endog = mod.model_.arima_res_.data.endog
      assert_array_almost_equal(wineind, new_endog)
  
imports: import numpy
  import pandas
  import pmdarima
  from pmdarima.arima import auto
  from pmdarima.arima.utils import nsdiffs
  from pmdarima.warnings import ModelFitWarning
  from pmdarima.compat.pytest import pytest_error_str, pytest_warning_messages
  from numpy.testing import assert_allclose
  from numpy.testing import assert_array_almost_equal
  import os
  from os.path import abspath, dirname
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_AutoARIMA_class() without return types