input: Write a function to re-write the given SQL query in Python. Return the Python code as a string.
  
  def re_write_sql_in_python(sql_query: str) -> str:
      return f'''import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("{sql_query}")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()'''
  
  assert re_write_sql_in_python("SELECT * FROM Movies WHERE category = 'horror'") == '''import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()'''
output: def re_write_sql_in_python(sql_query: str) -> str:
      return f'''import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("{sql_query}")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()'''