code: def reset(nn):
      def _reset(item):
          if hasattr(item, "reset_parameters"):
              item.reset_parameters()
  
      if nn is not None:
          if hasattr(nn, "children") and len(list(nn.children())) > 0:
              for item in nn.children():
                  _reset(item)
          else:
              _reset(nn)
  
file_path: AutoGL/autogl/module/model/pyg/robust/nn/inits.py
imports: import math
  import torch
label_desc: Use image node_id 8 for calling a global function with example usage: reset(nn) without return types