code: def common_broadcast(x, y):
      ndims1 = x.ndim
      ndims2 = y.ndim
  
      common_ndims = min(ndims1, ndims2)
      for axis in range(common_ndims):
          assert (
              x.shape[axis] == y.shape[axis]
          ), "Dimensions not equal at axis {}".format(axis)
  
      if ndims1 < ndims2:
          x = x.reshape(x.shape + (1,) * (ndims2 - ndims1))
      elif ndims2 < ndims1:
          y = y.reshape(y.shape + (1,) * (ndims1 - ndims2))
  
      return x, y
  
label_desc: Use image node_id 1 for calling a global function with example usage: common_broadcast(x, y) and returns: x,  y