input: Write a function to re-write the given SQL query in Python. If the input is a SQL query string, the function should output the equivalent Python code that performs the same operation on a SQLite database.
  assert rewrite_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()'''.strip()
  assert rewrite_sql_in_python("SELECT title FROM Movies WHERE year = 2020;")=='''import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("SELECT title FROM Movies WHERE year = 2020")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()'''.strip()
  assert rewrite_sql_in_python("SELECT * FROM Songs;")=='''import sqlite3
  
  conn = sqlite3.connect('movies.db') 
  cursor = conn.cursor()
  
  cursor.execute("SELECT * FROM Songs")
  
  result = cursor.fetchall()
  for row in result:
      print(row)
  
  conn.close()'''.strip()
  assert rewrite_sql_in_python("")=="Input SQL query is empty."
  assert rewrite_sql_in_python("DELETE FROM Movies WHERE id = 1")=="This query type is not supported."
output: def rewrite_sql_in_python(sql_query):
      if not sql_query:
          return "Input SQL query is empty."
      if sql_query.upper().startswith("SELECT"):
          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()'''.strip()
      else:
          return "This query type is not supported."