code: def addLagForForecast(self, df, lag_df, series, p):
      name = series + "_Lag" + str(p)
      if name not in self.mInputNames:
          return
      lSeries = df[series]
      lShiftedSeries = self.shift_series(
          lSeries, p, self.mDefaultValues[series]
      )
      lag_df[name] = lShiftedSeries
  
imports: import pandas
  import numpy
  from .None import Time
  from .None import Perf
  from .None import Plots
  from .None import Utils
  import time
label_desc: Use image node_id 7 for calling the cAbstractAR obj's underlying member method code with example usage: obj.addLagForForecast(df, lag_df, series, p) without return types