def write_map_file(mapFNH, items, header):
if isinstance(header, list):<EOL><INDENT>header = "<STR_LIT:\t>".join(header) + "<STR_LIT:\n>"<EOL><DEDENT>with file_handle(mapFNH, "<STR_LIT:w>") as mapF:<EOL><INDENT>mapF.write(header)<EOL>for row in items:<EOL><INDENT>mapF.write("<STR_LIT:\t>".join(row)+"<STR_LIT:\n>")<EOL><DEDENT><DEDENT>
Given a list of mapping items (in the form described by the parse_mapping_file method)
and a header line, write each row to the given input file with fields separated by tabs.

:type mapFNH: file or str
:param mapFNH: Either the full path to the map file or an open file handle

:type items: list
:param item: The list of row entries to be written to the mapping file

:type header: list or str
:param header: The descriptive column names that are required as the first line of
               the mapping file

:rtype: None