:param luminosity: Input luminosity
    :return: Luminosity limited to the 0 <= l <= 255 range.

def correct_output(luminosity):
    """
    :param luminosity: Input luminosity
    :return: Luminosity limited to the 0 <= l <= 255 range.
    """
    if luminosity < 0:
        val = 0
    elif luminosity > 255:
        val = 255
    else:
        val = luminosity
    return round(val)