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 get_vertex_index(self, vtypes) -> TensorType:
      if isinstance(vtypes, str):
          vtypes = [vtypes]
  
      ix = torch.tensor([], dtype=torch.int64)
  
      if isinstance(self.__vertex_type_offsets, dict):
          vtypes = np.searchsorted(
              self.__vertex_type_offsets["type"], vtypes
          )
      for vtype in vtypes:
          start = int(self.__vertex_type_offsets["start"][vtype])
          stop = int(self.__vertex_type_offsets["stop"][vtype])
          ix = torch.concatenate(
              [
                  ix,
                  torch.arange(
                      start,
                      stop + 1,
                      1,
                      dtype=self.__vertex_dtype,
                      device="cuda",
                  ),
              ]
          )
  
      return ix
  
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 15 for calling the CuGraphStore obj's underlying member method code with example usage: obj.get_vertex_index(vtypes) and returns: ix