<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def csv_writer(csvfile):
 """ Get a CSV writer for the version of python that is being run. """

        if sys.version_info >= (3,):
            writer = csv.writer(csvfile, delimiter=',', lineterminator='\n')
        else:
            writer = csv.writer(csvfile, delimiter=b',', lineterminator='\n')

        return writer