code: def calc_l2distsq(x, y):
      d = (x - y) ** 2
      return d.view(d.shape[0], -1).sum(dim=1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 6 for calling a global function with example usage: calc_l2distsq(x, y) and returns: d