def check_level(logging_stmt, logging_stmt_is_commented_out, min_level_value, max_level_value):
level = get_logging_level(logging_stmt, logging_stmt_is_commented_out)<EOL>if level is None:<EOL><INDENT>logging.warning('<STR_LIT>' % logging_stmt.strip())<EOL>return False<EOL><DEDENT>elif level is False:<EOL><INDENT>return False<EOL><DEDENT>elif level_is_between(level, min_level_value, max_level_value):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>logging.debug('<STR_LIT>' % logging_stmt.strip())<EOL>return False<EOL><DEDENT>
Extracts the level of the logging statement and returns True if the
    level falls betwen min and max_level_value.  If the level cannot be
    extracted, then a warning is logged.