code: def crop_keypoint_by_coords(
      keypoint: KeypointInternalType,
      crop_coords: Tuple[int, int, int, int],
  ):  # skipcq: PYL-W0613
      """Crop a keypoint using the provided coordinates of bottom-left and top-right corners in pixels and the
      required height and width of the crop.
  
      Args:
          keypoint (tuple): A keypoint `(x, y, angle, scale)`.
          crop_coords (tuple): Crop box coords `(x1, x2, y1, y2)`.
  
      Returns:
          A keypoint `(x, y, angle, scale)`.
  
      """
      x, y, angle, scale = keypoint[:4]
      x1, y1, _, _ = crop_coords
      return x - x1, y - y1, angle, scale
  
imports: from typing import Optional, Sequence, Tuple
  import cv2
  import numpy
  from albumentations.augmentations.utils import _maybe_process_in_chunks, preserve_channel_dim
  from ...core.bbox_utils import denormalize_bbox, normalize_bbox
  from ...core.transforms_interface import BoxInternalType, KeypointInternalType
  from ..geometric import functional
label_desc: Use image node_id 5 for calling a global function with example usage: crop_keypoint_by_coords(keypoint, crop_coords) and returns: unknown,  unknown,  angle,  scale