input: Write a function to automatically refresh a given table of data in a PostgreSQL database every 5 minutes. If the function is called, it should continuously run and execute the refresh command at the specified interval.
  assert refresh_data()==None
  assert refresh_data()==None
  assert refresh_data()==None
  assert refresh_data()==None
  assert refresh_data()==None
output: 
  import time
  import psycopg2
  
  def refresh_data():
      conn = psycopg2.connect(database="your_db", user="your_user", password="your_password", host="your_host", port="your_port")
      cur = conn.cursor()
      while True:
          cur.execute("REFRESH MATERIALIZED VIEW your_table;")
          conn.commit()
          time.sleep(300)
  