code: def loss_bone(x, y):
      bones_x = (x - x[:, parents])[:, bone_indices]
      bones_y = (y - y[:, parents])[:, bone_indices]
      loss_bone = (bones_x - bones_y).pow(2).sum(dim=-1).sqrt().mean()
      return loss_bone
  
file_path: insightface/body/human_pose/ambiguity_aware/lib/core/loss.py
imports: import torch
  from torch.nn import functional
  import numpy
  import torch.nn
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: loss_bone(x, y) and returns: loss_bone