code: def euler2matrix(euler):
      assert len(euler) == 3
      matrix = np.zeros([3, 3], dtype=np.float32)
  
      pitch, yaw, roll = euler
      R = (
          Rotation.from_euler("yxz", [yaw, pitch, roll], degrees=False)
          .as_matrix()
          .T
      )
      matrix = R
      return matrix
  
imports: import os
  import time
  import timm
  import glob
  import numpy
  import os.path
  import cv2
  import torch
  import torch.distributed
  from torch import nn
  from pathlib import Path
  from backbones import get_network
  from skimage import transform
  from scipy.spatial.transform import Rotation
label_desc: Use image node_id 2 for calling a global function with example usage: euler2matrix(euler) and returns: matrix