code: def my_cdist(x1, x2):
      x1_norm = x1.pow(2).sum(dim=-1, keepdim=True)
      x2_norm = x2.pow(2).sum(dim=-1, keepdim=True)
      res = torch.addmm(
          x2_norm.transpose(-2, -1), x1, x2.transpose(-2, -1), alpha=-2
      ).add_(x1_norm)
      return res.clamp_min_(1e-30)
  
label_desc: Use image node_id 1 for calling a global function with example usage: my_cdist(x1, x2) and returns: res