input: 
  def refresh_table_every_5_minutes(database_connection_details: dict) -> None:
      """
      Refresh a given table of data in a PostgreSQL database every 5 minutes. This function
      will establish a connection to the PostgreSQL database using the provided connection
      details, and then use the schedule module to refresh the specified table every 5 minutes.
  
      >>> refresh_table_every_5_minutes({
      ...     'host': 'localhost',
      ...     'database': 'db',
      ...     'user': 'user',
      ...     'password': 'password',
      ...     'table_name': 'TableName'
      ... })
  
      """
      import psycopg2
      from datetime import datetime, timedelta
      import schedule
      import time
  
      conn = psycopg2.connect(**database_connection_details)
  
      def refresh_data():
          cur = conn.cursor()
          query = f'REFRESH TABLE "{database_connection_details["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)
  
output:     
      conn.close()
  