class_docstr: class object to do uniform sampling
class_docstr_tok: ["class","object","to","do","uniform","sampling"]
code: def _get_type_id_from_indices(indices, etype_id_range_dict):
      type_ser = cudf.Series(
          cp.full(shape=len(indices), fill_value=-1, dtype=cp.int32)
      )
  
      for etype_id, (start, stop) in etype_id_range_dict.items():
          range_types = (start <= indices) & (indices < stop)
          type_ser[range_types] = etype_id
  
      return type_ser
  
file_path: cugraph/python/cugraph/cugraph/gnn/dgl_extensions/dgl_uniform_sampler.py
imports: from functools import cached_property
  import cugraph
  import cudf
  import cupy
  from cugraph.gnn.dgl_extensions.utils.sampling import sample_cugraph_graphs, get_subgraph_and_src_range_from_edgelist, get_underlying_dtype_from_sg
  from cugraph.gnn.dgl_extensions.utils.sampling import src_n, dst_n
label_desc: Use image node_id 4 for calling the DGLUniformSampler obj's underlying member method code with example usage: obj._get_type_id_from_indices(indices, etype_id_range_dict) and returns: type_ser