code: def get_user_tables(conn):
      
  
      query_string = "select schemaname, relname from pg_stat_user_tables;"
      with conn.cursor() as cursor:
          cursor.execute(query_string)
          tables = cursor.fetchall()
  
      return tables
docs: Retrieve all user tables.