code: def getpoly(self, params):
      ar = np.r_[[1], -params[: self.nar]]
      ma = np.r_[[1], params[-self.nma :]]
      import numpy.polynomial as poly
  
      return poly.Polynomial(ar), poly.Polynomial(ma)
  
file_path: statsmodels/statsmodels/miscmodels/try_mlecov.py
imports: import numpy
  from scipy import linalg
  from scipy.linalg import toeplitz
  from statsmodels.base.model import GenericLikelihoodModel
  from statsmodels.datasets import sunspots
  from statsmodels.tsa.arima_process import ArmaProcess, arma_acovf, arma_generate_sample
label_desc: Use image node_id 6 for calling a global function with example usage: getpoly(params) and returns: poly,  poly