doc: added example for dict usage of ids