code: def cycle(loader):
      while True:
          for batch in loader:
              yield batch
  
file_path: avalanche/avalanche/training/plugins/mir.py
imports: import copy
  from typing import TYPE_CHECKING
  import torch
  from avalanche.benchmarks.utils import concat_datasets
  from avalanche.models.utils import avalanche_forward
  from avalanche.training.plugins.strategy_plugin import SupervisedPlugin
  from avalanche.training.storage_policy import ClassBalancedBuffer
label_desc: Use image node_id 1 for calling a global function with example usage: cycle(loader) without return types