The linked function will need to be mutated for T5 per the T5 page linked earlier in this thread and farther down in my repo readme.  Or the page's instructions could simply be used, rather than this TPU-oriented tutorial.