class_docstr: Duck-typed version of PyG's GraphStore and FeatureStore.
class_docstr_tok: ["Duck-typed","version","of","PyG","'s","GraphStore","and","FeatureStore","."]
code: def __make_offsets(self, input_dict):
      offsets = {}
      offsets["stop"] = [
          input_dict[v] for v in sorted(input_dict.keys())
      ]
      offsets["stop"] = torch.tensor(offsets["stop"])
      if torch.has_cuda:
          offsets["stop"] = offsets["stop"].cuda()
  
      cumsum = offsets["stop"].cumsum(0)
      offsets["start"] = cumsum - offsets["stop"]
      offsets["stop"] = cumsum - 1
  
      offsets["type"] = np.array(sorted(input_dict.keys()))
  
      return offsets
  
imports: from typing import Optional, Tuple, Any, Union, List, Dict
  from enum import Enum, auto
  from dataclasses import dataclass
  from collections import defaultdict
  from itertools import chain
  from functools import cached_property
  import numpy
  import cupy
  import pandas
  import cudf
  import cugraph
  import warnings
  import dask.array
  import dask.dataframe
  import dask.distributed
  import dask_cudf
  from cugraph.utilities.utils import import_optional, MissingModule
label_desc: Use image node_id 3 for calling the CuGraphStore obj's underlying member method code with example usage: obj.__make_offsets(input_dict) and returns: offsets