def crop_keypoint_by_coords(keypoint, crop_coords, crop_height, crop_width, rows, cols):
x, y, a, s = keypoint<EOL>x1, y1, x2, y2 = crop_coords<EOL>cropped_keypoint = [x - x1, y - y1, a, s]<EOL>return cropped_keypoint<EOL>
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.