code: def _sum_sarray_dicts(sarray):
      counts_sf = (
          gl.SFrame({"count_dicts": sarray})
          .stack("count_dicts")
          .groupby(
              key_columns="X1",
              operations={"count": gl.aggregate.SUM("X2")},
          )
      )
      return counts_sf.unstack(column=["X1", "count"])[0].values()[0]
  
file_path: pyLDAvis/notebooks/pyLDAvis/graphlab.py
imports: import funcy
  import numpy
  import pandas
  import graphlab
  import pyLDAvis
label_desc: Use image node_id 2 for calling a global function with example usage: _sum_sarray_dicts(sarray) and returns: counts_sf