class_docstr: Subset of a dataset at specified indices.
  
  Args:
      dataset (Dataset): The whole Dataset
      indices (sequence): Indices in the whole set selected for subset
class_docstr_tok: ["Subset","of","a","dataset","at","specified","indices",".","Args",":","dataset","(","Dataset",")",":","The","whole","Dataset","indices","(","sequence",")",":","Indices","in","the","whole","set","selected","for","subset"]
code: def __init__(
      self, dataset: Dataset[T_co], indices: Sequence[int]
  ) -> None:
      self.dataset = dataset
      self.indices = indices
  
imports: import bisect
  import itertools
  import math
  import warnings
  from typing import cast, Dict, Generic, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union
  from torch import default_generator, randperm
  from ...None import Generator, Tensor
label_desc: Use image node_id 1 to create a new Subset object from inherited base classes: Dataset with example: obj = Subset(dataset, indices)