code: def arima_string(model, padding=False):
      order = tuple(model["arma"][i] for i in [0, 5, 1, 2, 6, 3, 4])
      m = order[6]
      result = f"ARIMA({order[0]},{order[1]},{order[2]})"
      if m > 1 and sum(order[3:6]) > 0:
          result += f"({order[3]},{order[4]},{order[5]})[{m}]"
      if padding and m > 1 and sum(order[3:6]) == 0:
          n_spaces = 7 + len(str(m))
          result += n_spaces * " "
  
      if model["xreg"] is not None:
          if model["xreg"].shape[1] == 1 and (
              "drift" in model["coef"].keys()
          ):
              result += " with drift" + "        "
          else:
              result = f"Regression with {result} errors"
      else:
          if ("constant" in model["coef"].keys()) or (
              "intercept" in model["coef"].keys()
          ):
              result += " with non-zero mean"
          elif order[1] == 0 and order[4] == 0:
              result += " with zero mean" + 4 * " "
          else:
              result += " " + len("with non-zero mean") * " "
      if not padding:
          pass
  
      return result
  
imports: import math
  import warnings
  from collections import namedtuple
  from functools import partial
  from typing import Optional, Dict, Union, Tuple
  import numpy
  import pandas
  import statsmodels.api
  from numba import njit
  from scipy.optimize import minimize
  from scipy.stats import norm
  from .mstl import mstl
  from .utils import CACHE, NOGIL
label_desc: Use image node_id 28 for calling a global function with example usage: arima_string(model, padding) and returns: result