code: def findPQ(ar_coeffs, ma_coeffs):
      p = 0 if ar_coeffs is None else len(ar_coeffs)
      q = 0 if ma_coeffs is None else len(ma_coeffs)
      return p, q
  
imports: import warnings
  from functools import partial
  import numpy
  import pandas
  import scipy.linalg
  import statsmodels.api
  from numba import njit
  from numpy.polynomial.polynomial import Polynomial
  from scipy.special import inv_boxcox
  from scipy.stats import boxcox
  from scipy.optimize import minimize
  from statsmodels.tsa.stattools import adfuller
  from .arima import auto_arima_f
  from .utils import NOGIL, CACHE
label_desc: Use image node_id 4 for calling a global function with example usage: findPQ(ar_coeffs, ma_coeffs) and returns: p,  q