code: def test_ARMAtoMA():
      ar = np.array([0.5, 0.6])
      ma = np.array([0.4, 0.3, 0.1, 0.05])
      max_deg = 6
      equivalent_ma = ARMAtoMA(ar, ma, max_deg)
      ema_expected = np.array(
          [0.9000, 1.3500, 1.3150, 1.5175, 1.5477, 1.6843]
      )
      assert_array_almost_equal(equivalent_ma, ema_expected, decimal=4)
  
imports: import numpy
  import pandas
  from pmdarima.arima import ARIMA, auto_arima, AutoARIMA, ARMAtoMA
  from pmdarima.arima import _validation
  from pmdarima.compat.pytest import pytest_error_str
  from pmdarima.datasets import load_lynx, load_wineind, load_heartrate
  from numpy.random import RandomState
  from numpy.testing import assert_array_almost_equal, assert_almost_equal, assert_allclose
  from statsmodels import api
  from sklearn.metrics import mean_squared_error
  import datetime
  import joblib
  import os
  import pickle
  import pytest
  import tempfile
  import time
label_desc: Use image node_id 26 for calling a global function with example usage: test_ARMAtoMA() without return types