def get_dots_bounds(dots):
    """Returns the bounds of a list of dots."""

    return (
        min(x for x, y in dots),
        max(x for x, y in dots),
        min(y for x, y in dots),
        max(y for x, y in dots)
    )