<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def conditional_write(strm, fmt, value, *args, **kwargs):
 """Write to stream using fmt and value if value is not None"""

    if value is not None:
        strm.write(fmt.format(value, *args, **kwargs))