code: def test_sync_local_json_spec(app, client, tmp_path):
      app.config["AUTO_SERVERS"] = False
  
      local_spec_path = tmp_path / "openapi.json"
      app.config["SYNC_LOCAL_SPEC"] = True
      app.config["LOCAL_SPEC_PATH"] = local_spec_path
      app.config["SPEC_FORMAT"] = "json"
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
  
      with open(local_spec_path) as f:
          spec_content = json.loads(f.read())
          assert spec_content == app.spec
          assert "info" in spec_content
          assert "paths" in spec_content
  
imports: import json
  import pytest
  from flask import request
  from openapi_spec_validator import validate_spec
  from .schemas import Bar
  from .schemas import Baz
  from .schemas import Foo
  from apiflask import APIBlueprint
  from apiflask import Schema
  from apiflask.commands import spec_command
  from apiflask.fields import Integer
label_desc: Use image node_id 14 for calling a global function with example usage: test_sync_local_json_spec(app, client, tmp_path) without return types