class_docstr: A memory-efficient constant sequence.
docstr: Subset
  
  :param indices: indices of the new data.
  :return:
docstr_tok: ["Subset",":","param","indices",":","indices","of","the","new","data",".",":","return",":"]
code: def subset(self, indices: List[int]) -> "ConstantSequence[DataT]":
      """Subset
  
      :param indices: indices of the new data.
      :return:
      """
      return ConstantSequence(self._constant_value, len(indices))
  
imports: import bisect
  import sys
  import numpy
  from avalanche.benchmarks.utils.dataset_utils import slice_alike_object_to_indices
  from typing import Iterable, List, Optional, Sequence, Tuple, TypeVar, Union, overload
  from torch.utils.data import ConcatDataset
  import itertools
  from avalanche.benchmarks.utils.dataset_definitions import IDataset
label_desc: Use image node_id 6 for calling the ConstantSequence obj's underlying member method code with example usage: obj.subset(indices) and returns: ConstantSequence