docs: def pass_bucket(f):
      """Decorate to retrieve a bucket."""
      @wraps(f)
      def decorate(*args, **kwargs):
          bucket_id = kwargs.pop('bucket_id')
          bucket = Bucket.get(as_uuid(bucket_id))
          if not bucket:
              abort(404, 'Bucket does not exist.')
          return f(bucket=bucket, *args, **kwargs)
      return decorate