code: def keypoint_transpose(
      keypoint: KeypointInternalType,
  ) -> KeypointInternalType:
      """Rotate a keypoint by angle.
  
      Args:
          keypoint: A keypoint `(x, y, angle, scale)`.
  
      Returns:
          A keypoint `(x, y, angle, scale)`.
  
      """
      x, y, angle, scale = keypoint[:4]
  
      if angle <= np.pi:
          angle = np.pi - angle
      else:
          angle = 3 * np.pi - angle
  
      return y, x, angle, scale
  
imports: import math
  from typing import List, Optional, Sequence, Tuple, Union
  import cv2
  import numpy
  import skimage.transform
  from scipy.ndimage import gaussian_filter
  from albumentations.augmentations.utils import _maybe_process_in_chunks, angle_2pi_range, clipped, preserve_channel_dim, preserve_shape
  from ...None import random_utils
  from ...core.bbox_utils import denormalize_bbox, normalize_bbox
  from ...core.transforms_interface import BoxInternalType, FillValueType, ImageColorType, KeypointInternalType
label_desc: Use image node_id 46 for calling a global function with example usage: keypoint_transpose(keypoint) and returns: y,  x,  angle,  scale