input: Write a function to convert an SQL query into a Python program that executes the query against a database using pyodbc. The function should take the SQL query as input, establish a database connection, execute the query with the appropriate WHERE clause, and print 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 * FROM items WHERE quantity > 100")
  """
  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 items"
  where_clause = "WHERE quantity > ?"
  quantity = 100
  
  # Execute the query
  cursor.execute(sql + " " + where_clause, quantity)
  results = cursor.fetchall()
  
  # Output the results
  for result in results:
      print(result)
  """
output: def convert_sql_to_python(sql_query):
      import pyodbc
      conn = pyodbc.connect("<connection details>")
      cursor = conn.cursor()
      cursor.execute(sql_query)
      results = cursor.fetchall()
      for result in results:
          print(result)