input: from typing import List
  
  def execute_sql_query(db_name: str, query: str) -> List:
      """Re-write the given SQL query in Python.
      >>> execute_sql_query('movies.db', "SELECT * FROM Movies WHERE category = 'horror'")
      [('Movie1', 'horror'), ('Movie2', 'horror')]
      """
      import sqlite3
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
      cursor.execute(query)
      result = cursor.fetchall()
      conn.close()
      return result
output:     import sqlite3
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
      cursor.execute(query)
      result = cursor.fetchall()
      conn.close()
      return result