input: def select_horror_movies(db_path: str) -> list:
      """ Re-write the following SQL query in Python:
      SELECT * FROM Movies WHERE category = 'horror';
      
      Example:
      >>> select_horror_movies('movies.db')
      [(1, 'The Conjuring', 'horror', 2013), (2, 'Halloween', 'horror', 1978)]
      """
      import sqlite3
      
      conn = sqlite3.connect(db_path)
      cursor = conn.cursor()
      
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      result = cursor.fetchall()
      
      conn.close()
      return result
output:     import sqlite3
      
      conn = sqlite3.connect(db_path)
      cursor = conn.cursor()
      
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      result = cursor.fetchall()
      
      conn.close()
      return result