code: def test_ni_sit_single_dataset_fixed_assignment(self):
      mnist_train = MNIST(
          root=default_dataset_location("mnist"),
          train=True,
          download=True,
      )
      mnist_test = MNIST(
          root=default_dataset_location("mnist"),
          train=False,
          download=True,
      )
      ni_benchmark_reference = ni_benchmark(
          mnist_train, mnist_test, 5, shuffle=True, seed=1234
      )
  
      reference_assignment = (
          ni_benchmark_reference.train_exps_patterns_assignment
      )
  
      my_ni_benchmark = ni_benchmark(
          mnist_train,
          mnist_test,
          5,
          shuffle=True,
          seed=4321,
          fixed_exp_assignment=reference_assignment,
      )
  
      self.assertEqual(
          ni_benchmark_reference.n_experiences,
          my_ni_benchmark.n_experiences,
      )
  
      self.assertEqual(
          ni_benchmark_reference.train_exps_patterns_assignment,
          my_ni_benchmark.train_exps_patterns_assignment,
      )
  
      self.assertEqual(
          ni_benchmark_reference.exp_structure,
          my_ni_benchmark.exp_structure,
      )
  
file_path: avalanche/tests/benchmarks/scenarios/deprecated/test_ni_sit_scenario.py
imports: import unittest
  import torch
  from torchvision.datasets import MNIST
  from avalanche.benchmarks import ni_benchmark
  from avalanche.benchmarks.datasets import default_dataset_location
  from avalanche.benchmarks.scenarios import NIExperience, ClassificationStream
  from avalanche.benchmarks.scenarios.deprecated.new_classes.nc_utils import make_nc_transformation_subset
  from avalanche.benchmarks.utils import _taskaware_classification_subset
label_desc: Use image node_id 2 for calling the NISITTests obj's underlying member method code with example usage: obj.test_ni_sit_single_dataset_fixed_assignment() without return types