code: def change_brn_pars(
      m: Module,
      momentum=0.1,
      r_d_max_inc_step=0.0001,
      r_max=1.0,
      d_max=0.0,
  ):
      for attr_str in dir(m):
          target_attr = getattr(m, attr_str)
          if isinstance(target_attr, BatchRenorm2D):
              target_attr.momentum = torch.tensor(
                  (momentum), requires_grad=False
              )
              target_attr.r_max = torch.tensor(
                  r_max, requires_grad=False
              )
              target_attr.d_max = torch.tensor(
                  d_max, requires_grad=False
              )
              target_attr.r_d_max_inc_step = r_d_max_inc_step
  
      for n, ch in m.named_children():
          change_brn_pars(ch, momentum, r_d_max_inc_step, r_max, d_max)
  
imports: from collections import defaultdict
  from typing import Callable, Dict, List, NamedTuple, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch.nn import Linear, Module
  from torch.utils.data import DataLoader, Dataset
  from avalanche.benchmarks import OnlineCLExperience
  from avalanche.models.batch_renorm import BatchRenorm2D
label_desc: Use image node_id 13 for calling a global function with example usage: change_brn_pars(m, momentum, r_d_max_inc_step, r_max, d_max) without return types