code: def test_inf_ic_false():
      """Don't ignore infinite IC models when ignore_inf_ic is False."""
      forecaster = AutoETS(
          auto=True, sp=52, n_jobs=-1, ignore_inf_ic=False
      )
      forecaster.fit(inf_ic_ts)
      fitted_forecaster = forecaster._fitted_forecaster
      # check that all of the information criteria are infinite
      assert (
          np.isinf(fitted_forecaster.aic)
          and np.isinf(fitted_forecaster.bic)
          and np.isinf(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 4 for calling a global function with example usage: test_inf_ic_false() without return types