def minmax(low, high):
def decorator(function):<EOL><INDENT>"""<STR_LIT>"""<EOL>@functools.wraps(function)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>series = function(*args, **kwargs)<EOL>lo_pass = low <= series<EOL>hi_pass = series <= high<EOL>return lo_pass & hi_pass<EOL><DEDENT>return wrapper<EOL><DEDENT>return decorator<EOL>
Test that the data items fall within range: low <= x <= high.