code: def encode_csv(data_dict, column_names):
    
    import csv
    import six
    values = [str(data_dict[x]) for x in column_names]
    str_buff = six.StringIO()
    writer = csv.writer(str_buff, lineterminator='')
    writer.writerow(values)
    return str_buff.getvalue()
docs: Builds a csv string.
  
    Args:
      data_dict: dict of {column_name: 1 value}
      column_names: list of column names
  
    Returns:
      A csv string version of data_dict