How to temporarily use another sampling rate in pipewire

I found this cool trick on how to temporarily set your music production to a sampling rate of 44.1kHz instead of the usual 48kHz using pipewire. See Ardour discourse about it.