From where to import RequestBody object?

The example code at the following link references a RequestBody object, a Success / Response & Failure Object.
Where should I import these objects from ?

@openapi.definition(
    body=RequestBody(UserProfile, required=True),
    summary="User profile update",
    tag="one",
    response=[Success, Response(Failure, status=400)],
)

Thank you

:thinking: That is not a great example, because I do not even know where Success and Failure were meant to come from. To be honest, this is probably some poor documentation as they were meant to be custom models.

However, the other two can be imported here:

from sanic_ext.extensions.openapi.definitions import RequestBody, Response

This works!

from sanic import Sanic
from sanic.request import Request
from sanic.response import JSONResponse
from sanic_ext import openapi
from sanic_ext.extensions.openapi.definitions import RequestBody, Response

app = Sanic("MyHelloWorldApp")

class UserProfile:
    name: str
    age: int
    email: str

class Success:
    title: str
    description: str

class Failure(Success):
    pass

@app.get("/<id>")
@openapi.definition(
    summary="Test Summary",
    description="Test Description",
    tag="User",
    body=RequestBody(UserProfile, required=True),
    response=[Response(Success, status=200, description="Success"), Response(Failure, status=400, description="Bad Request")],
)
async def hello_worlds(request: Request, id: str) -> JSONResponse:
    return JSONResponse({"message": "Hello, world."})