code: def test_inf_ic_true():
      """Ignore infinite IC models when ignore_inf_ic is `True`."""
      forecaster = AutoETS(
          auto=True, sp=52, n_jobs=-1, ignore_inf_ic=True
      )
      forecaster.fit(inf_ic_ts)
      fitted_forecaster = forecaster._fitted_forecaster
      # check that none of the information criteria are infinite
      assert (
          np.isfinite(fitted_forecaster.aic)
          and np.isfinite(fitted_forecaster.bic)
          and np.isfinite(fitted_forecaster.aicc)
      )
  
file_path: sktime/sktime/forecasting/tests/test_ets.py
imports: import numpy
  import pandas
  import pytest
  from numpy.testing import assert_array_equal
  from sktime.datasets import load_airline
  from sktime.forecasting.ets import AutoETS
  from sktime.tests.test_switch import run_test_for_class
label_desc: Use image node_id 3 for calling a global function with example usage: test_inf_ic_true() without return types