Implement get_all_buckets