def check_valid_border(border):
    """    Raises a :py:exc:`ValueError` iff `border` is negative.

    :param int border: Indicating the size of the quiet zone.
    """
    if border is not None and (int(border) != border or border < 0):
        raise ValueError(
            'The border must not a non-negative integer value. Got: "{0}"'.
            format(border))
