code: def test_create_pet(client):
      rv = client.post(
          "/pets", json={"name": "Grey", "category": "cat"}
      )
      assert rv.status_code == 201
      assert rv.json
      if client._example == "base_response":
          data = rv.json["data"]
      else:
          data = rv.json
      assert data["name"] == "Grey"
      assert data["category"] == "cat"
  
file_path: apiflask/examples/test_examples.py
imports: import os
  import sys
  from importlib import reload
  import flask_sqlalchemy
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_create_pet(client) without return types