code: def _aggregate_super_table(funcs=None, size=False, gt=None):
      # aggregate values
      t = []
      if size:
          tt = gt.size()
          tt.name = "size"
          t.append(tt)
  
      if funcs is not None:
          tt = gt.agg(funcs)
  
          # flatten hierarchical index
          cols = []
          for col in tt.columns:
              if isinstance(col, tuple):
                  cols.append("_".join(col).strip())
              else:
                  cols.append(col)
          tt.columns = cols
  
          t.append(tt)
  
      try:
          t = pd.concat(t, axis=1)
      except TypeError:
          t = dd.concat(t, axis=1)
  
      return t
  
file_path: deepgraph/deepgraph/iterators_and_indexers.py
imports: from datetime import datetime
  from itertools import chain
  import numpy
  import pandas
  from deepgraph._triu_indices import _triu_indices, _union_of_indices, _reduce_triu_indices
  from deepgraph.connector_selector_implementations import _ft_connector, _ft_selector
  from deepgraph.connectors_and_selectors import CreatorFunction, Selector, Connector
  from deepgraph.utils import _flatten, _is_array_like, _merge_dicts
label_desc: Use image node_id 4 for calling a global function with example usage: _aggregate_super_table(funcs, size, gt) and returns: t