code: def _get_local_data(df, by):
      df = df[0]
      num_local_edges = len(df)
      local_by_max = df[by].iloc[-1]
      local_max = df[["src", "dst"]].max().max()
      return num_local_edges, local_by_max, local_max
  
imports: from collections.abc import Sequence
  from collections import OrderedDict
  from dask_cudf.core import DataFrame
  from dask_cudf.core import Series
  import cugraph.dask.comms.comms
  from cugraph.dask.common.read_utils import MissingUCXPy
  from cugraph.dask.common.part_utils import _extract_partitions
  from dask.distributed import default_client
  from toolz import first
  from functools import reduce
label_desc: Use image node_id 1 for calling a global function with example usage: _get_local_data(df, by) and returns: num_local_edges,  local_by_max,  local_max