code: def init_parameter_matrix(
      tensor: torch.Tensor, dim0_scale: int = 1, dim1_scale: int = 1
  ):
      sigma = np.sqrt(
          6.0
          / float(
              tensor.size(0) / dim0_scale + tensor.size(1) / dim1_scale
          )
      )
      return nn.init._no_grad_uniform_(tensor, -sigma, sigma)
  
imports: from collections import Counter
  import numpy
  import torch
  from torch import nn
  from torch.autograd import Variable
  from torch.optim import Optimizer
  from cornac.utils.common import get_rng
label_desc: Use image node_id 1 for calling a global function with example usage: init_parameter_matrix(tensor, dim0_scale, dim1_scale) and returns: nn