code: def __init__(
      self,
      name: str,
      benchmark: DetectionScenario,
      *,
      slice_ids: Optional[List[int]] = None,
      set_stream_info: bool = True,
  ):
      self.benchmark: DetectionScenario = benchmark
      super().__init__(
          name=name,
          benchmark=benchmark,
          slice_ids=slice_ids,
          set_stream_info=set_stream_info,
      )
  
imports: from typing import Iterable, Mapping, Optional, Sequence, Set, Tuple, TypeVar, List, Callable, Union, overload
  import warnings
  from avalanche.benchmarks.scenarios.deprecated.dataset_scenario import ClassesTimelineCLScenario, DatasetScenario, FactoryBasedStream, TStreamsUserDict
  from avalanche.benchmarks.scenarios.deprecated import AbstractClassTimelineExperience
  from avalanche.benchmarks.utils.data import AvalancheDataset
  from avalanche.benchmarks.utils.dataset_utils import manage_advanced_indexing
  from avalanche.benchmarks.utils.detection_dataset import DetectionDataset
label_desc: Use image node_id 1 to create a new DetectionStream object from inherited base classes: FactoryBasedStream with example: obj = DetectionStream(name, benchmark)