Yep, so gui.set_constant is a hallucination, but gui.set() is available (since 1.8.0) and it can be used to set constants for a node (since 1.9.1):
gui.set_constant
gui.set()