code: def __init__(self, slice_ids: Optional[List[int]]):
      self.slice_ids: Optional[List[int]] = (
          list(slice_ids) if slice_ids is not None else None
      )
      """
          Describes thew indices in the current slice
          (w.r.t. the original sequence). 
          Can be None, which means that this object is the original stream.
          """
      super().__init__()
  
imports: from abc import ABC, abstractmethod
  import bisect
  import copy
  from typing import Iterator, overload
  from typing_extensions import final
  import numpy
  from numpy import ndarray
  from torch import Tensor
  from torch.utils.data import Subset
  from .dataset_definitions import IDatasetWithTargets
  from typing import Sequence, List, Iterable, Union, Optional, TypeVar, Callable, Generic
label_desc: Use image node_id 1 to create a new SliceSequence object from inherited base classes: Sequence, Generic, ABC with example: obj = SliceSequence(slice_ids)