def METHOD_NAME(pred, gt, has_3d_joints):
    """ 
    mPJPE loss
    """
    pred, gt = filter_3d_joints(pred, gt, has_3d_joints)
    error = paddle.sqrt((paddle.minimum((pred - gt), paddle.to_tensor(1.2))**2
                         ).sum(axis=-1)).mean()
    return error