code: def init_cnn(m):
      if getattr(m, "bias", None) is not None:
          nn.init.constant_(m.bias, 0)
      if isinstance(m, (nn.Conv1d, nn.Conv2d, nn.Conv3d, nn.Linear)):
          nn.init.kaiming_normal_(m.weight)
      for l in m.children():
          init_cnn(l)
  
imports: from __future__ import annotations
  from ...torch_basics import *
label_desc: Use image node_id 1 for calling a global function with example usage: init_cnn(m) without return types