code: def lb(x):
      s, p = acorr_ljungbox(x, lags=4)
      return np.r_[s, p]
  
file_path: statsmodels/statsmodels/sandbox/tools/try_mctools.py
imports: from statsmodels.compat.python import lrange
  import numpy
  from scipy import stats
  from statsmodels.sandbox.tools.mctools import StatTestMC
  from statsmodels.stats.diagnostic import acorr_ljungbox
  from statsmodels.tsa.stattools import adfuller
label_desc: Use image node_id 2 for calling a global function with example usage: lb(x) and returns: np