code: def _add_pred_results(pred_results, local_results, axis=0):
      if pred_results[0].ndim == 1:
          df_filler = 0
      else:
          df_filler = pred_results[0].iloc[-1, :].dropna()
          df_filler[:] = 0
  
      new_locals = []
      combine_axis = pred_results[0].ndim - axis - 1
      for pred_result, local_result in zip(pred_results, local_results):
          local_result = local_result.fillna(df_filler, axis=axis)
          new_locals.append(
              local_result.add(
                  pred_result.sum(axis=axis), axis=combine_axis
              )
          )
      return new_locals
  
imports: from collections import namedtuple
  from functools import partial
  import numpy
  import pandas
  from ....None import opcodes
  from ....serialization.serializables import BoolField
  from ..aggregation import BaseDataFrameExpandingAgg
label_desc: Use image node_id 1 for calling a global function with example usage: _add_pred_results(pred_results, local_results, axis) and returns: new_locals