code: def _init_weights(self, m):
      if isinstance(m, nn.Linear):
          trunc_normal_(m.weight)
          if isinstance(m, nn.Linear) and m.bias is not None:
              zeros_(m.bias)
      elif isinstance(m, nn.LayerNorm):
          zeros_(m.bias)
          ones_(m.weight)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
  from ppocr.modeling.heads.rec_ctc_head import get_para_bias_attr
  from ppocr.modeling.backbones.rec_svtrnet import Block, ConvBNLayer, trunc_normal_, zeros_, ones_
label_desc: Use image node_id 2 for calling the EncoderWithSVTR obj's underlying member method code with example usage: obj._init_weights(m) without return types