code: def create_pet(json_data):
      pet_id = len(pets)
      json_data["id"] = pet_id
      pets.append(json_data)
      return pets[pet_id]
  
file_path: apiflask/examples/blueprint_tags/app.py
imports: from apiflask import APIFlask, APIBlueprint, Schema, abort
  from apiflask.fields import Integer, String
  from apiflask.validators import Length, OneOf
label_desc: Use image node_id 4 for calling a global function with example usage: create_pet(json_data) and returns: pets