Welcome to forums @dazfitzg.
You cant require or import in function nodes.
require
import
Please see a recent post on how to do it Here
EDIT: Seems you have already tried that
I removed the import and tried to add the module in the function node's setup tab.