def _list_scope_and_collections(self) -> dict[str, any]:
        """
        Return the scope and collections that exist in the linked Couchbase bucket
        Returns:
           Dict[str, Any]: Dictionary of scopes and collections in the scope in the bucket.
        """
        scope_collection_map: Dict[str, Any] = {}

        # Get a list of all scopes in the bucket
        for scope in self._bucket.collections().get_all_scopes():
            scope_collection_map[scope.name] = []

            # Get a list of all the collections in the scope
            for collection in scope.collections:
                scope_collection_map[scope.name].append(collection.name)

        return scope_collection_map

        Return the scope and collections that exist in the linked Couchbase bucket
        Returns:
           Dict[str, Any]: Dictionary of scopes and collections in the scope in the bucket.
        
llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-couchbase/llama_index/storage/kvstore/couchbase/base.py