def METHOD_NAME(self, node_type, rule_logits):
    """rule_choice"""
    self.choice_point = self.XentChoicePoint(rule_logits)
    if self.debug:
        choices = []
        probs = []
        for rule_idx, logprob in sorted(
            self.model.rule_infer(node_type, rule_logits), key=operator.itemgetter(1), reverse=True
        ):
            _, rule = self.model.preproc.all_rules[rule_idx]
            choices.append(rule)
            probs.append(logprob.exp().item())
        self.history = self.history.append(ChoiceHistoryEntry(node_type, choices, probs, None))