docs: def csv_to_list(csv_file, delimiter=','):
      """
      Reads in a CSV file and returns the contents as list,
      where every row is stored as a sublist, and each element
      in the sublist represents 1 cell in the table.
      """
      with open_csv(csv_file) as csv_con:
          if len(delimiter) > 1:
              dialect = csv.Sniffer().sniff(csv_con.read(1024),
                                            delimiters=delimiter)
              csv_con.seek(0)
              reader = csv.reader(csv_con, dialect)
          else:
              reader = csv.reader(csv_con, delimiter=delimiter)
          return list(reader)