etadataRecipe
from supertokens_python.recipe.usermetadata.asyncio import get_user_metadata

from ...interfaces import (
    APIInterface,
    APIOptions,
    UserGetAPINoUserFoundError,
    UserGetAPIOkResponse,
)


async def handle_user_get(
    _api_interface: APIInterface,
    _tenant_id: str,
    api_options: APIOptions,
    _user_context: Dict[str, Any],
) -&gt; Union[
    UserGetAPINoUserFoundError,
    UserGetAPIOkResponse,
]:
    user_id = api_options.request.get_query_param(&#34;userId&#34;)

    i