code: def trunc_normal_init(
      module: nn.Module,
      mean: float = 0,
      std: float = 1,
      a: float = -2,
      b: float = 2,
      bias: float = 0,
  ) -> None:
      if hasattr(module, "weight") and module.weight is not None:
          trunc_normal_(module.weight, mean, std, a, b)  # type: ignore
      if hasattr(module, "bias") and module.bias is not None:
          nn.init.constant_(module.bias, bias)
  
imports: import copy
  import math
  import warnings
  import numpy
  import torch
  import torch.nn
  from torch import Tensor
  from annotator.uniformer.mmcv.utils import Registry, build_from_cfg, get_logger, print_log
label_desc: Use image node_id 5 for calling a global function with example usage: trunc_normal_init(module, mean, std, a, b, bias) without return types