input: Write a function to convert a given SQL query into a Python program that executes the query and prints the results.
  assert convert_sql_to_python("SELECT * FROM orders WHERE YEAR(order_date) = 2020")=="""import datetime, pyodbc
  
  # Establish a connection to the database
  conn = pyodbc.connect("<connection details>")
  cursor = conn.cursor()
  
  # Get the year of the order date
  sql = "SELECT * FROM orders"
  query_date = datetime.date.today().year
  where_clause = "WHERE YEAR(order_date) = ?"
  
  # Execute the query
  cursor.execute(sql + " " +  where_clause, query_date)
  results = cursor.fetchall()
  
  # Output the results
  for result in results:
      print(result)"""
  assert convert_sql_to_python("SELECT name, age FROM users WHERE age > 30")=="""import datetime, pyodbc
  
  # Establish a connection to the database
  conn = pyodbc.connect("<connection details>")
  cursor = conn.cursor()
  
  # Execute the query
  sql = "SELECT name, age FROM users WHERE age > 30"
  cursor.execute(sql)
  results = cursor.fetchall()
  
  # Output the results
  for result in results:
      print(result)"""
  assert convert_sql_to_python("")=="""import datetime, pyodbc
  
  # Establish a connection to the database
  conn = pyodbc.connect("<connection details>")
  cursor = conn.cursor()
  
  # Execute the query
  sql = ""
  cursor.execute(sql)
  results = cursor.fetchall()
  
  # Output the results
  for result in results:
      print(result)"""
  assert convert_sql_to_python("SELECT * FROM products")=="""import datetime, pyodbc
  
  # Establish a connection to the database
  conn = pyodbc.connect("<connection details>")
  cursor = conn.cursor()
  
  # Execute the query
  sql = "SELECT * FROM products"
  cursor.execute(sql)
  results = cursor.fetchall()
  
  # Output the results
  for result in results:
      print(result)"""
output: def convert_sql_to_python(sql_query):
      import datetime, pyodbc
  
      # Establish a connection to the database
      conn = pyodbc.connect("<connection details>")
      cursor = conn.cursor()
  
      # Execute the query
      cursor.execute(sql_query)
      results = cursor.fetchall()
  
      # Output the results
      for result in results:
          print(result)