def METHOD_NAME(keypoints):
    """Get bbox from keypoints."""
    if len(keypoints) == 0:
        return [0, 0, 0, 0]
    x1, y1, _ = np.amin(keypoints, axis=0)
    x2, y2, _ = np.amax(keypoints, axis=0)
    w, h = x2 - x1, y2 - y1
    return [x1, y1, w, h]