def METHOD_NAME(self, context):
    self.inputs['U'].hide_safe = self.input_mode == 'VERTICES'
    self.inputs['V'].hide_safe = self.input_mode == 'VERTICES'
    self.inputs['UVPoints'].hide_safe = self.input_mode == 'PAIRS'
    updateNode(self, context)