code: def weight_variable(shape):
      initial = torch.empty(shape, dtype=torch.float)
      torch.nn.init.xavier_normal_(initial)
      return initial
  
imports: import numpy
  import torch
  from torch import nn
  from torch.nn.parameter import Parameter
label_desc: Use image node_id 1 for calling a global function with example usage: weight_variable(shape) and returns: initial