code: def get_vertex_partition_offsets(input_graph):
      import cudf
  
      renumber_vertex_count = (
          input_graph.renumber_map.implementation.ddf.map_partitions(
              len
          ).compute()
      )
      renumber_vertex_cumsum = renumber_vertex_count.cumsum()
      # Assume the input_graph edgelist was renumbered
      src_col_name = input_graph.renumber_map.renumbered_src_col_name
      vertex_dtype = input_graph.edgelist.edgelist_df[
          src_col_name
      ].dtype
      vertex_partition_offsets = cudf.Series([0], dtype=vertex_dtype)
      vertex_partition_offsets = vertex_partition_offsets.append(
          cudf.Series(renumber_vertex_cumsum, dtype=vertex_dtype)
      )
      return vertex_partition_offsets
  
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 6 for calling a global function with example usage: get_vertex_partition_offsets(input_graph) and returns: vertex_partition_offsets