code: def test_get_pet(client):
      rv = client.get("/pets/1")
      assert rv.status_code == 200
      assert rv.json
      if client._example == "base_response":
          data = rv.json["data"]
      else:
          data = rv.json
      if client._example == "orm":
          assert data["name"] == "Kitty"
          assert data["category"] == "cat"
      elif client._example == "pagination":
          assert data["name"] == "Pet 1"
      else:
          assert data["name"] == "Coco"
          assert data["category"] == "dog"
  
      rv = client.get("/pets/13")
      if client._example != "pagination":
          assert rv.status_code == 404
          assert rv.json
  
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 3 for calling a global function with example usage: test_get_pet(client) without return types