code: def test_sync_local_spec_no_path(app):
      app.config["SYNC_LOCAL_SPEC"] = True
  
      with pytest.raises(TypeError):
          app.spec
  
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 16 for calling a global function with example usage: test_sync_local_spec_no_path(app) without return types