input: from typing import List
  
  def retrieve_movies_by_category(database_path: str, category: str) -> List[tuple]:
      """ Re-write the SQL query "SELECT * FROM Movies WHERE category = 'horror';" in Python.
      This function connects to a SQLite database, executes the query to retrieve all movies 
      from the given category, and prints each row of the result.
      
      >>> retrieve_movies_by_category('movies.db', 'horror')
      [(1, 'Horror Movie A', 'horror', 2020), (2, 'Horror Movie B', 'horror', 2021)]
      """
output:     import sqlite3
      connection = sqlite3.connect(database_path)
      cursor = connection.cursor()
      cursor.execute("SELECT * FROM Movies WHERE category = ?", (category,))
      result = cursor.fetchall()
      connection.close()
      return result