@staticmethod<EOL><INDENT>def _assert_is_color(value):<DEDENT>
if not isinstance(value, tuple) or len(value) != <NUM_LIT:3>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not all(<NUM_LIT:0> <= x <= <NUM_LIT:255> for x in value):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Assert that the given value is a valid brightness.

:param value: The value to check.