es import (
    APIInterface,
    APIOptions,
    SessionInfo,
    UserSessionsGetAPIResponse,
)


async def handle_sessions_get(
    _api_interface: APIInterface,
    _tenant_id: str,
    api_options: APIOptions,
    user_context: Dict[str, Any],
) -&gt; UserSessionsGetAPIResponse:
    user_id = api_options.request.get_query_param(&#34;userId&#34;)

    if user_id is None:
        raise_bad_input_exception(&#34;Missing required parameter &#39;userId&#39;&#34;)

    # Passing tenant id as None sets fetch_ac