def dump_as_two_item_tsv(record, output_file):
for ordered_stats in record.ordered_statistics:<EOL><INDENT>if len(ordered_stats.items_base) != <NUM_LIT:1>:<EOL><INDENT>continue<EOL><DEDENT>if len(ordered_stats.items_add) != <NUM_LIT:1>:<EOL><INDENT>continue<EOL><DEDENT>output_file.write('<STR_LIT>'.format(<EOL>list(ordered_stats.items_base)[<NUM_LIT:0>], list(ordered_stats.items_add)[<NUM_LIT:0>],<EOL>record.support, ordered_stats.confidence, ordered_stats.lift,<EOL>os.linesep))<EOL><DEDENT>
Dump a relation record as TSV only for 2 item relations.

Arguments:
    record -- A RelationRecord instance to dump.
    output_file -- A file to output.