class_docstr: RegularizationMethod implement regularization strategies.
  RegularizationMethod is a callable.
  The method `update` is called to update the loss, typically at the end
  of an experience.
code: def update(self, *args, **kwargs):
      raise NotImplementedError()
  
imports: import copy
  from collections import defaultdict
  from typing import List
  import torch
  import torch.nn.functional
  from avalanche.models import MultiTaskModule, avalanche_forward
label_desc: Use image node_id 1 for calling the RegularizationMethod obj's underlying member method code with example usage: obj.update() without return types