def _get_level(level):
    numeric_level = level
    if isinstance(level, basestring):
        try:
            numeric_level = int(level)
        except:
            numeric_level = getattr(logging, level.upper(), None)

    if not isinstance(numeric_level, int):
        raise ValueError('Invalid log level: %s' % str(level))
    return numeric_level
P tags are made up of several runs (r tags) of text. This function takes a
dataset/ETHPy150Open thasso/pyjip/jip/logger.py/_get_level--crossover with--dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py/get_element_content