code: def SlimResNet18(nclasses, nf=20):
      """Slimmed ResNet18."""
      return ResNet(BasicBlock, [2, 2, 2, 2], nclasses, nf)
  
imports: import torch.nn
  from torch.nn.functional import relu, avg_pool2d
  from avalanche.models import MultiHeadClassifier, MultiTaskModule, DynamicModule
label_desc: Use image node_id 2 for calling a global function with example usage: SlimResNet18(nclasses, nf) and returns: ResNet