code: def delete_pet(pet_id):
      """Delete a Pet
  
      Delete a pet with specific ID. The deleted pet will be renamed to `"Ghost"`.
      """
      if pet_id > len(pets) - 1:
          abort(404)
      pets[pet_id]["deleted"] = True
      pets[pet_id]["name"] = "Ghost"
      return ""
  
file_path: apiflask/examples/openapi/basic/app.py
imports: from apiflask import APIFlask, Schema, abort
  from apiflask.fields import Integer, String
  from apiflask.validators import Length, OneOf
label_desc: Use image node_id 6 for calling a global function with example usage: delete_pet(pet_id) and returns: str