./cc @pfackeldey Follow up from the work done in https://github.com/pymc-devs/pytensor/discussions/1636