Generates a temporary CSV file that contains the data for the selected variable table name.
    :param variable_table_name: str, variable table name
    :return: str, temp CSV file path

def generate_graph_csv(variable_table_name):
    """
    Generates a temporary CSV file that contains the data for the selected variable table name.
    :param variable_table_name: str, variable table name
    :return: str, temp CSV file path
    """
    temp_csv = home_dir + "/PycharmProjects/crystal/crystal/static/temp.csv"
    conn, c = open_data_base_connection()

    # Get variable data
    c.execute("""SELECT * FROM {}""".format(variable_table_name))
    with open(temp_csv, "w", newline='') as csv_file:
        csv_writer = csv.writer(csv_file)
        csv_writer.writerow([i[0] for i in c.description])  # write headers
        csv_writer.writerows(c)
        print("File saved: {}".format(temp_csv))
        conn.close()

        return temp_csv