input: Write a python function to plot data from a CSV file in a Tkinter window.
  assert plot_csv_data('test_data.csv') is None  # Ensure the function runs without errors
  assert plot_csv_data('empty_data.csv') is None  # Ensure the function handles empty data without errors
output: import tkinter as tk
  from tkinter import filedialog
  import matplotlib.pyplot as plt
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
  import pandas as pd
  
  def plot_csv_data(file_path):
      root = tk.Tk()
      root.title("CSV Data Plot")
  
      try:
          data = pd.read_csv(file_path)
          if data.empty:
              print("The CSV file is empty.")
              return
          
          fig, ax = plt.subplots()
          data.plot(ax=ax)
          
          canvas = FigureCanvasTkAgg(fig, master=root)
          canvas.draw()
          canvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
          
          tk.Button(root, text="Quit", command=root.quit).pack(side=tk.BOTTOM)
          root.mainloop()
      except Exception as e:
          print(f"An error occurred: {e}")