code: def test_random_state(model):
      """Function to test random_state parameter."""
      obj = model.create_test_instance()
      if model == VAR:
          obj.fit(y=y_1, fh=fh)
          y = obj.predict()
          obj.fit(y=y_1, fh=fh)
          y1 = obj.predict()
      else:
          obj.fit(y=y, fh=fh)
          y = obj.predict()
          obj.fit(y=y, fh=fh)
          y1 = obj.predict()
      assert y == y1
  
file_path: sktime/sktime/forecasting/base/tests/randomtest.py
imports: import numpy
  import pytest
  from sktime.datasets import load_airline
  from sktime.forecasting.ets import AutoETS
  from sktime.forecasting.exp_smoothing import ExponentialSmoothing
  from sktime.forecasting.sarimax import SARIMAX
  from sktime.forecasting.structural import UnobservedComponents
  from sktime.forecasting.var import VAR
  from sktime.utils._testing.forecasting import make_forecasting_problem
label_desc: Use image node_id 1 for calling a global function with example usage: test_random_state(model) without return types