def message(msg, msgtype='progress'):
    """Send a message to console.

    Args:
        msgtype (str): one of 'progress', 'warning', 'error', or 'debug'
    """
    message = dict(level=msgtype.upper(), text=msg) % "[%(level)s]: %(text)s"
    sys.stderr.write(message.strip() + "\n")

    if msgtype == 'error':
        sys.exit(1)
dataset/ETHPy150Open mgymrek/pybamview/pybamview/utils.py/message/swapped operands of `%`