<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trace(msg):
 """Print a trace message to stderr if environment variable is set. """

    if os.environ.get('JARN_TRACE') == '1':
        print('TRACE:', msg, file=sys.stderr)