input: Write a function to implement a Python script that refreshes a given table of data in a PostgreSQL database every 5 minutes.
  
  def refresh_table(host, database, user, password, table_name):
   import psycopg2
   from datetime import datetime, timedelta
   import schedule
   import time
  
   conn = psycopg2.connect(
    host=host, 
    database=database, 
    user=user, 
    password=password
   )
  
   def refresh_data():
    cur = conn.cursor()
    query = f'REFRESH TABLE "{table_name}";'
    cur.execute(query)
    conn.commit()
  
  # run the refresh_data job every 5 minutes
   schedule.every(5).minutes.do(refresh_data)
  
   while True:
    schedule.run_pending()
    time.sleep(1)
  
  assert refresh_table("localhost", "db", "user", "password", "TableName")  # No output for correct execution
output: def refresh_table(host, database, user, password, table_name):
   import psycopg2
   from datetime import datetime, timedelta
   import schedule
   import time
  
   conn = psycopg2.connect(
    host=host, 
    database=database, 
    user=user, 
    password=password
   )
  
   def refresh_data():
    cur = conn.cursor()
    query = f'REFRESH TABLE "{table_name}";'
    cur.execute(query)
    conn.commit()
  
   schedule.every(5).minutes.do(refresh_data)
  
   while True:
    schedule.run_pending()
    time.sleep(1)