input: def refresh_table_periodically(conn, table_name: str):
      """ Function to automatically refresh a given table in PostgreSQL database every
      5 minutes.
      The function uses the schedule library to automate the refresh task and
      the psycopg2 module to interact with the PostgreSQL database. Upon execution,
      it refreshes the table based on the provided table name and continues
      refreshing every 5 minutes until manually stopped.
  
      >>> # Assuming the database has a table named "sample_table"
      >>> refresh_table_periodically(conn,'sample_table')
      # The table 'sample_table' is now set to refresh every 5 minutes
      """
output:     import schedule
      import time
      import psycopg2
  
      def refresh_table():
          with conn.cursor() as cursor:
              cursor.execute(f"REFRESH MATERIALIZED VIEW {table_name};")
          conn.commit()
  
      schedule.every(5).minutes.do(refresh_table)
  
      while True:
          schedule.run_pending()
          time.sleep(1)