<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def map_field(fn, m) : """ Maps a field name, given a mapping file. Returns input if fieldname is unmapped. """

    if m is None:
        return fn
    if fn in m:
        return m[fn]
    else:
        return fn