code: def test_to_dict_returns_dict():
      train = lynx[:90]
      modl = auto_arima(
          train,
          start_p=1,
          start_q=1,
          start_P=1,
          start_Q=1,
          max_p=5,
          max_q=5,
          max_P=5,
          max_Q=5,
          seasonal=True,
          stepwise=True,
          suppress_warnings=True,
          D=10,
          max_D=10,
          error_action="ignore",
      )
      assert isinstance(modl.to_dict(), dict)
  
imports: import numpy
  import pandas
  from pmdarima.arima import ARIMA, auto_arima, AutoARIMA, ARMAtoMA
  from pmdarima.arima import _validation
  from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.datasets import load_lynx, load_wineind, load_heartrate
  from numpy.random import RandomState
  from numpy.testing import assert_array_almost_equal, assert_almost_equal, assert_allclose
  from statsmodels import api
  from sklearn.metrics import mean_squared_error
  import datetime
  import joblib
  import os
  import pickle
  import pytest
  import tempfile
  import time
label_desc: Use image node_id 19 for calling a global function with example usage: test_to_dict_returns_dict() without return types