def METHOD_NAME(filename, verbosity):
    """
    Check the given path, printing out any warnings detected.
    @return: the number of warnings printed
    """
    if verbosity > 1:
        sys.stderr.write("\n  %-78s " % filename)
        sys.stderr.flush()
    try:
        with io.open(filename, 'br') as f:
            text = f.read()
        return check(text + b'\n', filename, verbosity)
    except IOError as msg:
        return ["%s: %s" % (filename, msg.args[1])]
    except TypeError:
        pass