code: def test_delete(client, auth, app):
      auth.login()
      response = client.post("/1/delete")
      assert response.headers["Location"] == "/"
  
      with app.app_context():
          assert db.session.get(Post, 1) is None
  
file_path: flask-sqlalchemy/examples/flaskr/tests/test_blog.py
imports: import pytest
  from flaskr import db
  from flaskr.auth.models import User
  from flaskr.blog.models import Post
label_desc: Use image node_id 8 for calling a global function with example usage: test_delete(client, auth, app) without return types