Apparently this was totally unnecessary because bep already has code that handles this without any additional functions required.
Just do
{{ if hugo.Version ge "0.101.0" }}
Something that depends on at least 0.101.0
{{ else }}
Fallback code and/or warn user that they need a newer version
{{ end }}