input: Write a python function to fetch all data from a MySQL database's 'students' table and return it as a list of tuples.
  assert fetch_students_data() == [(1, 'John Doe', 'Computer Science'), (2, 'Jane Smith', 'Mathematics')]
  assert fetch_students_data() == []
output: def fetch_students_data():
      import mysql.connector
  
      # Establish the connection
      connection = mysql.connector.connect(
          host='localhost',  # Update with your MySQL host
          user='root',       # Update with your MySQL username
          password='password',  # Update with your MySQL password
          database='school'  # Update with your MySQL database name
      )
  
      cursor = connection.cursor()
  
      # Execute the query to fetch all data from 'students' table
      cursor.execute("SELECT * FROM students")
  
      # Fetch all rows from the executed query
      result = cursor.fetchall()
  
      # Close the cursor and connection
      cursor.close()
      connection.close()
  
      return result