async def list_collections(
            ids: list[str] = Query(
                [],
                description="A list of collection IDs to retrieve. If not provided, all collections will be returned.",
            ),
            offset: int = Query(
                0,
                ge=0,
                description="Specifies the number of objects to skip. Defaults to 0.",
            ),
            limit: int = Query(
                100,
                ge=1,
                le=1000,
                description="Specifies a limit on the number of objects to return, ranging between 1 and 100. Defaults to 100.",
            ),
            owner_only: bool = Query(
                False,
                description="If true, only returns collections owned by the user, not all accessible collections.",
            ),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedCollectionsResponse:
            """Returns a paginated list of collections the authenticated user
            has access to.

            Results can be filtered by providing specific collection IDs.
            Regular users will only see collections they own or have access to.
            Superusers can see all collections.

            The collections are returned in order of last modification, with
            most recent first.
            """
            if auth_user.is_superuser:
                requesting_user_id = [auth_user.id] if owner_only else None
            else:
                requesting_user_id = [auth_user.id]

            collection_uuids = [UUID(collection_id) for collection_id in ids]

            collections_overview_response = (
                await self.services.management.collections_overview(
                    user_ids=requesting_user_id,
                    collection_ids=collection_uuids,
                    offset=offset,
                    limit=limit,
                    owner_only=owner_only,
                )
            )

            return (  # type: ignore
                collections_overview_response["results"],
                {
                    "total_entries": collections_overview_response[
                        "total_entries"
                    ]
                },
            )
Returns a paginated list of collections the authenticated user
            has access to.

            Results can be filtered by providing specific collection IDs.
            Regular users will only see collections they own or have access to.
            Superusers can see all collections.

            The collections are returned in order of last modification, with
            most recent first.
            
py/core/main/api/v3/collections_router.py