Implementation of the Number2Category node.