code: def rotate_pose(im, rot_index):
      """
      Args:
          im: (m, n)
      """
      h, w, d = im.shape
      if d == 3:
          if rot_index == 0:
              new_im = im
          elif rot_index == 1:
              new_im = cv2.rotate(im, cv2.ROTATE_90_CLOCKWISE)
          elif rot_index == 2:
              new_im = cv2.rotate(im, cv2.ROTATE_180)
          elif rot_index == 3:
              new_im = cv2.rotate(im, cv2.ROTATE_90_COUNTERCLOCKWISE)
      return new_im
  
imports: import cv2
  import numpy
  from utils.tenFpsDataLoader import TrajStringToMatrix
label_desc: Use image node_id 2 for calling a global function with example usage: rotate_pose(im, rot_index) and returns: new_im