<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fail(message, code=-1):
 """Fail with an error."""

    print('Error: %s' % message, file=sys.stderr)
    sys.exit(code)