input: Write a function to convert an SQL query into a Python code that fetches the result from a SQLite database and prints each row of the result.
  assert sql_to_python("SELECT * FROM Movies WHERE category = 'horror'")=='import sqlite3\n\nconn = sqlite3.connect(\'movies.db\') \ncursor = conn.cursor()\n\ncursor.execute("SELECT * FROM Movies WHERE category = \'horror\'")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()'
  assert sql_to_python("SELECT name, director FROM Movies WHERE year > 2010")=='import sqlite3\n\nconn = sqlite3.connect(\'movies.db\') \ncursor = conn.cursor()\n\ncursor.execute("SELECT name, director FROM Movies WHERE year > 2010")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()'
  assert sql_to_python("SELECT * FROM Actors")=='import sqlite3\n\nconn = sqlite3.connect(\'movies.db\') \ncursor = conn.cursor()\n\ncursor.execute("SELECT * FROM Actors")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()'
  assert sql_to_python("")==''
output: def sql_to_python(sql_query):
      if not sql_query:
          return ''
      return f'import sqlite3\n\nconn = sqlite3.connect(\'movies.db\') \ncursor = conn.cursor()\n\ncursor.execute("{sql_query}")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()'