def crop_region(image, region):
    """Crops a singular region in an image
    Args:
        image (image): A numpy image
        region (dict): A dictionary containing x1, y1, x2, y2
    Returns:
        image: The cropped image
    """
    return image[ region["y1"]:region["y2"], region["x1"]:region["x2"] ]