docstr: Saved Query API: Test export
code: def test_export(self):
      """
      Saved Query API: Test export
      """
      admin = self.get_user("admin")
      sample_query = (
          db.session.query(SavedQuery)
          .filter(SavedQuery.created_by == admin)
          .first()
      )
  
      self.login(username="admin")
      argument = [sample_query.id]
      uri = f"api/v1/saved_query/export/?q={prison.dumps(argument)}"
      rv = self.client.get(uri)
      assert rv.status_code == 200
      buf = BytesIO(rv.data)
      assert is_zipfile(buf)
  
imports: import json
  from datetime import datetime
  from io import BytesIO
  from typing import Optional
  from zipfile import is_zipfile, ZipFile
  import yaml
  import pytest
  import prison
  from freezegun import freeze_time
  from sqlalchemy.sql import func, and_
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.core import Database
  from superset.models.core import FavStar
  from superset.models.sql_lab import SavedQuery
  from superset.utils.database import get_example_database
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.fixtures.importexport import database_config, saved_queries_config, saved_queries_metadata_config
label_desc: Use image node_id 32 for calling the TestSavedQueryApi obj's underlying member method code with example usage: obj.test_export() without return types