def METHOD_NAME(self, context):
    self.inputs['Start'].hide_safe = self.mode == GENERIC
    self.inputs['End'].hide_safe = self.mode == GENERIC
    self.inputs[CONTROL1_SOCKET].hide_safe = self.mode == GENERIC
    self.inputs[CONTROL2_SOCKET].hide_safe = self.mode == GENERIC or self.mode == QUADRATIC
    self.inputs[CONTROL1_SOCKET].name = "Tangent1" if self.mode == CUBIC_TANGENT else "Control1"
    self.inputs[CONTROL2_SOCKET].name = "Tangent2" if self.mode == CUBIC_TANGENT else "Control2"
    self.inputs['ControlPoints'].hide_safe = self.mode != GENERIC
    updateNode(self, context)