def METHOD_NAME(user_id: int, client: TestClient, **kw) -> list[t.Any]:
    """Request a user's logs, assert validity, and pass on the returned log entries.
    By default, the logs are fetched for the user logging in.
    The following assertions are made:
      * The response code is 200
      * The response content_type contains ``"json"``
      * The response's JSON contains an ``"items"`` key
    :returns: ``response.json['items']``
    """
    response = client.assert_url_ok(
        url_for("user.user_show_logs_json", user_id=user_id, **kw)
    )
    assert "json" in response.content_type.lower()
    json = response.json
    assert json.get("items") is not None
    return json["items"]