Please explain in the docstring what `scope_ids` is