code: def get_params_from_R(results_R):
      # get params from R
      params = [
          results_R[name] for name in ["alpha", "beta", "gamma", "phi"]
      ]
      # in R, initial states are order l[-1], b[-1], s[-1], s[-2], ..., s[-m]
      params += list(results_R["initstate"])
      params = list(filter(np.isfinite, params))
      return params
  
imports: from statsmodels.compat.pandas import QUARTER_END
  from statsmodels.compat.platform import PLATFORM_LINUX32, PLATFORM_WIN
  from itertools import product
  import json
  import pathlib
  import numpy
  from numpy.testing import assert_allclose, assert_almost_equal
  import pandas
  import pytest
  import scipy.stats
  from statsmodels.tsa.exponential_smoothing.ets import ETSModel
  import statsmodels.tsa.holtwinters
  import statsmodels.tsa.statespace.exponential_smoothing
label_desc: Use image node_id 13 for calling a global function with example usage: get_params_from_R(results_R) and returns: params