code: def test_client_json_no_app_context(app, client):
      @app.route("/hello", methods=["POST"])
      def hello():
          return f"Hello, {flask.request.json['name']}!"
  
      class Namespace:
          count = 0
  
          def add(self, app):
              self.count += 1
  
      ns = Namespace()
  
      with appcontext_popped.connected_to(ns.add, app):
          rv = client.post("/hello", json={"name": "Flask"})
  
      assert rv.get_data(as_text=True) == "Hello, Flask!"
      assert ns.count == 1
  
imports: import importlib.metadata
  import click
  import pytest
  import flask
  from flask import appcontext_popped
  from flask.cli import ScriptInfo
  from flask.globals import _cv_request
  from flask.json import jsonify
  from flask.testing import EnvironBuilder
  from flask.testing import FlaskCliRunner
label_desc: Use image node_id 19 for calling a global function with example usage: test_client_json_no_app_context(app, client) and returns: str, flask, str