code: def _default_detection_experience_factory(
      stream: "DetectionStream", experience_idx: int
  ):
      return DetectionExperience(
          origin_stream=stream, current_experience=experience_idx
      )
  
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 2 for calling a global function with example usage: _default_detection_experience_factory(stream, experience_idx) and returns: DetectionExperience