input: Write a function to create a Python script that refreshes a given table of data in a PostgreSQL database every 5 minutes. Include the necessary imports and connection details for the database. If the script is executed, it should continuously run the refresh operation at 5-minute intervals.
  assert refresh_data()==NotApplicable
  assert refresh_data()==NotApplicable
  assert refresh_data()==NotApplicable
  assert refresh_data()==NotApplicable
  assert refresh_data()==NotApplicable
output: 
  import psycopg2
  import time
  
  def refresh_data():
      conn = psycopg2.connect(
          dbname="your_dbname",
          user="your_username",
          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)
      return "NotApplicable"
  