code: def augmented_dickey_fuller(x, param=[{"attr": "teststat"}]):
      res = None
      try:
          res = adfuller(x)
      except LinAlgError:
          res = np.NaN, np.NaN, np.NaN
      except ValueError:  # occurs if sample size is too small
          res = np.NaN, np.NaN, np.NaN
      except (
          MissingDataError
      ):  # is thrown for e.g. inf or nan in the data
          res = np.NaN, np.NaN, np.NaN
  
      return [
          (
              'attr_"{}"'.format(config["attr"]),
              res[0]
              if config["attr"] == "teststat"
              else res[1]
              if config["attr"] == "pvalue"
              else res[2]
              if config["attr"] == "usedlag"
              else np.NaN,
          )
          for config in param
      ]
  
imports: import pandas
  import numpy
  from statsmodels.tsa.stattools import acf, adfuller, pacf
  import itertools
  from statsmodels.tsa.ar_model import AR
  from scipy.signal import cwt, find_peaks_cwt, ricker, welch
  from scipy.stats import linregress
  import scipy.stats
  from scipy.stats import kurtosis
  from scipy.stats import skew
  import numpy
  from scipy import signal, integrate
  from scipy.interpolate import interp1d
  import math
  from statsmodels.tools.sm_exceptions import MissingDataError
  from numpy.linalg import LinAlgError
label_desc: Use image node_id 12 for calling a global function with example usage: augmented_dickey_fuller(x, param) and returns: unknown