input: 
  def select_horror_movies_from_db(db_path: str) -> list:
      """ Re-write the following SQL query in Python:
      SELECT * FROM Movies WHERE category = 'horror';
      Connect to a SQLite database, execute the query, and return the result as a list of rows.
      
      >>> select_horror_movies_from_db('movies.db')
      [(1, 'The Shining', 'horror'), (2, 'Halloween', 'horror'), ...]
      """
      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
  