from io import StringIO
import csv


def _create_file(my_data):
	"""Create CSV file in memory."""
	file = StringIO()
	csv_writer = csv.writer(file)
	csv_writer.writerows(my_data)
	return file.getvalue()