def METHOD_NAME(self, context):
    self.inputs["Vertices"].hide_safe = self.mode == "CURVE"
    self.inputs["Curve"].hide_safe = self.mode != "CURVE"
    self.inputs["Commands"].hide_safe = self.mode != "USER"
    updateNode(self, context)