def clamp(inclusive_lower_bound: int,
          inclusive_upper_bound: int,
          value: int) -> int:
    """
    Bound the given ``value`` between ``inclusive_lower_bound`` and
    ``inclusive_upper_bound``.
    """
    if value <= inclusive_lower_bound:
        return inclusive_lower_bound
    elif value >= inclusive_upper_bound:
        return inclusive_upper_bound
    else:
        return value
Bound the given ``value`` between ``inclusive_lower_bound`` and
    ``inclusive_upper_bound``.