class_docstr: Duck-typed version of PyG's GraphStore and FeatureStore.
class_docstr_tok: ["Duck-typed","version","of","PyG","'s","GraphStore","and","FeatureStore","."]
docstr: Sets the vertex offsets for this store.
docstr_tok: ["Sets","the","vertex","offsets","for","this","store","."]
code: def __infer_offsets(
      self,
      num_nodes_dict: Dict[str, int],
      num_edges_dict: Dict[Tuple[str, str, str], int],
  ) -> None:
      """
      Sets the vertex offsets for this store.
      """
      self.__vertex_type_offsets = self.__make_offsets(num_nodes_dict)
  
      # Need to convert tuples to string in order to use searchsorted
      # Can convert back using x.split('__')
      # Lexicographic ordering is unchanged.
      self.__edge_type_offsets = self.__make_offsets(
          {
              "__".join(pyg_can_edge_type): n
              for pyg_can_edge_type, n in num_edges_dict.items()
          }
      )
  
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 4 for calling the CuGraphStore obj's underlying member method code with example usage: obj.__infer_offsets(num_nodes_dict, num_edges_dict) without return types