<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_output(job_id, content, conn=None):
 """writes output to the output table :param job_id: <str> id of the job :param content: <str> output to write :param conn: """

    output_job = get_job_by_id(job_id, conn)
    results = {}
    if output_job is not None:
        entry = {
            OUTPUTJOB_FIELD: output_job,
            CONTENT_FIELD: content
        }
        results = RBO.insert(entry, conflict=RDB_REPLACE).run(conn)
    return results