code: def rolling_ols_model():
      # Rolling Ordinary Least Squares (Rolling OLS)
      from statsmodels.regression.rolling import RollingOLS
  
      data = get_dataset("longley")
      exog = sm.add_constant(data.exog, prepend=False)
      rolling_ols = RollingOLS(data.endog, exog)
      model = rolling_ols.fit(reset=50)
  
      return ModelWithResults(
          model=model, alg=rolling_ols, inference_dataframe=exog
      )
  
imports: from collections import namedtuple
  import numpy
  import pandas
  import statsmodels.api
  from scipy.linalg import toeplitz
  from statsmodels.tsa.arima.model import ARIMA
  from statsmodels.tsa.arima_process import arma_generate_sample
  from mlflow.models import ModelSignature
  from mlflow.types.schema import Schema, TensorSpec
label_desc: Use image node_id 9 for calling a global function with example usage: rolling_ols_model() and returns: ModelWithResults