def read_logging_level(log_level):
    levels_dict = {
        1: logging.DEBUG, "debug": logging.DEBUG,
        2: logging.INFO, "info": logging.INFO,
        3: logging.WARNING, "warning": logging.WARNING,
        4: logging.ERROR, "error": logging.ERROR,
        5: logging.CRITICAL, "critical": logging.CRITICAL
    }

    if isinstance(log_level,str):
        log_level = log_level.lower()

    if levels_dict in log_level:
        return levels_dict[log_level]
    else:
        print "The logging level given is not valid"
        return None
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/base.py/read_logging_level/swapped operands of `in`