input: Write a function to convert an SQL query into a Python code snippet that performs the same operation using SQLite. The input will be a string representing the SQL query, and the output will be the corresponding Python code. The function should establish a connection to a SQLite database file named 'movies.db', execute the query, and then print the results.
  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, year FROM Movies WHERE year > 2000") == "import sqlite3\n\nconn = sqlite3.connect('movies.db')\ncursor = conn.cursor()\n\ncursor.execute(\"SELECT name, year FROM Movies WHERE year > 2000\")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()"
  assert sql_to_python("") == ""
  assert sql_to_python("SELECT * FROM Movies") == "import sqlite3\n\nconn = sqlite3.connect('movies.db')\ncursor = conn.cursor()\n\ncursor.execute(\"SELECT * FROM Movies\")\n\nresult = cursor.fetchall()\nfor row in result:\n    print(row)\n\nconn.close()"
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()"