code: def rotate2(joints_3d, rotmat):
      n = rotmat.size(0)
      rotmat = rotmat.view(n, 3, 3)
      joints_3d = joints_3d.matmul(rotmat)
      # joints_3d = rotmat.matmul(joints_3d.permute(0, 2, 1)).permute(0, 2, 1)
      return joints_3d
  
imports: import os
  import torch
  import torch.optim
  import numpy
  from sklearn.metrics import auc
label_desc: Use image node_id 9 for calling a global function with example usage: rotate2(joints_3d, rotmat) and returns: joints_3d