code: def padding(array, yy, val):
      """
      :param array: torch tensor array
      :param yy: desired width
      :param val: padded value
      :return: padded array
      """
      w = array.shape[0]
      b = 0
      bb = yy - b - w
  
      return torch.nn.functional.pad(
          array, pad=(b, bb), mode="constant", value=val
      )
  
imports: import dgl
  import numpy
  import torch
  from torch.utils.data import DataLoader, IterableDataset
  from torchtext.data.functional import numericalize_tokens_from_iterator
label_desc: Use image node_id 1 for calling a global function with example usage: padding(array, yy, val) and returns: torch