code: def test_no_overflow(snarimax):
      def get_month_distances(x):
          return {
              calendar.month_name[month]: math.exp(
                  -((x["month"].month - month) ** 2)
              )
              for month in range(1, 13)
          }
  
      def get_ordinal_date(x):
          return {"ordinal_date": x["month"].toordinal()}
  
      extract_features = compose.TransformerUnion(
          get_ordinal_date, get_month_distances
      )
  
      model = extract_features | snarimax
  
      time_series.evaluate(
          dataset=datasets.AirlinePassengers(),
          model=model,
          metric=metrics.MAE(),
          horizon=12,
      )
  
file_path: river/river/time_series/test_snarimax.py
imports: from __future__ import annotations
  import calendar
  import math
  import random
  import pytest
  import sympy
  from river import compose, datasets, metrics, time_series
  from river.time_series.snarimax import Differencer
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_overflow(snarimax) and returns: unknown, dict