input: Write a function to implement a Python script that refreshes a given table of data in a PostgreSQL database every 5 minutes. The function should take no parameters, establish a connection to the PostgreSQL database using the specified credentials, and execute a query to refresh the specified table. It should then schedule this refresh operation to run every 5 minutes using a task scheduler.
  assert refresh_database==None
  assert schedule.every(5).minutes.do(refresh_data) is not None
  assert type(refresh_data).__name__ == 'function'
output: def refresh_data():
      import psycopg2
      from schedule import every, run_pending
      import time
  
      def refresh_table():
          conn = psycopg2.connect(
              dbname="your_dbname",
              user="your_username",
              password="your_password",
              host="your_host",
              port="your_port"
          )
          cur = conn.cursor()
          cur.execute("REFRESH MATERIALIZED VIEW your_table;")
          conn.commit()
          cur.close()
          conn.close()
  
      every(5).minutes.do(refresh_table)
  
      while True:
          run_pending()
          time.sleep(1)