class_docstr: Defines a "New Instances" experience. It defines fields to obtain the
  current dataset and the associated task label. It also keeps a reference
  to the stream from which this experience was taken.
class_docstr_tok: ["Defines","a","``","New","Instances","''","experience",".","It","defines","fields","to","obtain","the","current","dataset","and","the","associated","task","label",".","It","also","keeps","a","reference","to","the","stream","from","which","this","experience","was","taken","."]
code: def benchmark(self, bench: NIScenario):
      self._benchmark = bench
  
file_path: avalanche/avalanche/benchmarks/scenarios/deprecated/new_instances/ni_scenario.py
imports: from typing import Optional, List, Sequence, Dict, Any
  import torch
  from avalanche.benchmarks.scenarios.deprecated.classification_scenario import ClassificationScenario, ClassificationStream, ClassificationExperience
  from avalanche.benchmarks.scenarios.deprecated.new_instances.ni_utils import _exp_structure_from_assignment
  from avalanche.benchmarks.utils.classification_dataset import _taskaware_classification_subset, TaskAwareClassificationDataset, TaskAwareSupervisedClassificationDataset
  from avalanche.benchmarks.utils.flat_data import ConstantSequence
label_desc: Use image node_id 3 for calling the NIExperience obj's underlying member method code with example usage: obj.benchmark(bench) without return types