on the page: https://shiny.posit.co/py/api/core/ui.modal_remove.html the function ui.modal_remove() is never actually used on this page, even though the purpose of the example code is to show how it's being used.