code: def pad_shape(x, y, x_size, y_size):
      xy_size = torch.broadcast_shapes(x_size, y_size)
      new_x_size = (1,) * (len(xy_size) - len(x_size)) + x_size
      new_y_size = (1,) * (len(xy_size) - len(y_size)) + y_size
      new_x = x.view(-1, *new_x_size)
      new_y = y.view(-1, *new_y_size)
      return new_x, new_y
  
file_path: dgl/tests/python/pytorch/mpops/test_edgewise.py
imports: import random
  import backend
  import dgl
  import numpy
  import pytest
  import torch
  from utils import parametrize_idtype
label_desc: Use image node_id 5 for calling a global function with example usage: pad_shape(x, y, x_size, y_size) and returns: new_x,  new_y