def METHOD_NAME(self, ids: list[NoteId], tags: str, add: bool = True) -> None:
    "Add tags in bulk. TAGS is space-separated."
    if add:
        self.bulk_add(ids, tags)
    else:
        self.bulk_remove(ids, tags)