input: 
  import sqlite3
  
  def execute_sql_query(database_name: str, query: str) -> None:
      """Executes a given SQL query on a specified SQLite database and prints each row of the result.
      
      >>> execute_sql_query('movies.db', "SELECT * FROM Movies WHERE category = 'horror'")
      # Rows from Movies table where category is 'horror'
      """
      conn = sqlite3.connect(database_name)
      cursor = conn.cursor()
      
      cursor.execute(query)
      result = cursor.fetchall()
      for row in result:
          print(row)
      
      conn.close()
  
output:     conn = sqlite3.connect(database_name)
      cursor = conn.cursor()
      
      cursor.execute(query)
      result = cursor.fetchall()
      for row in result:
          print(row)
      
      conn.close()