input: Write a python function to fetch product details from a MySQL database and return the results as a list of tuples.
  assert fetch_product_details() == [(1, 'Product1', 10.99), (2, 'Product2', 12.99), (3, 'Product3', 8.99)]
  assert fetch_product_details() == [(4, 'Product4', 14.99), (5, 'Product5', 11.49), (6, 'Product6', 9.99)]
output: def fetch_product_details():
      import mysql.connector
      
      # Establish the database connection
      connection = mysql.connector.connect(
          host='localhost',
          user='yourusername',
          password='yourpassword',
          database='yourdatabase'
      )
      
      cursor = connection.cursor()
      
      # Execute the query to fetch product details
      cursor.execute("SELECT * FROM products")
      
      # Fetch all rows from the executed query
      result = cursor.fetchall()
      
      # Close the cursor and connection
      cursor.close()
      connection.close()
      
      return result