def valid_if_true(value, should_raise=True):
if value is True:<EOL><INDENT>return True<EOL><DEDENT>if should_raise:<EOL><INDENT>raise TypeError<EOL><DEDENT>return False<EOL>
Validator that passes if the input is True.