def METHOD_NAME(self):
    ''' Update sockets based on selected operation '''
    inputs = self.inputs
    # update the A-Z input sockets
    if self.operation in multiple_input_operations:
        if not "B" in inputs:
            inputs.new("SvStringsSocket", "B")
    else:
        for a in ABC[1:]:  # remove all B-Z inputs (keep A)
            if a in inputs:
                inputs.remove(inputs[a])
    # update the other sockets
    if self.operation in {"PRODUCT"}:
        if inputs["Repeat"].hide:
            inputs["Repeat"].hide_safe = False
        inputs["Length"].hide_safe = True
    elif self.operation in {"COMBINATIONS", "PERMUTATIONS"}:
        inputs["Repeat"].hide_safe = True
        if inputs["Length"].hide:
            inputs["Length"].hide_safe = False