def _do_analyze(self, action_ref, rule_links=None, processed=None, depth=0):
        if processed is None:
            processed = sets.Set()
        if rule_links is None:
            rule_links = []
        processed.add(action_ref)
        for rule_link in self._rules.get(action_ref, []):
            rule_links.append((depth, rule_link))
            if processed in rule_link._dest_action_ref:
                continue
            self._do_analyze(rule_link._dest_action_ref, rule_links=rule_links,
                             processed=processed, depth=depth + 1)
        return rule_links
dataset/ETHPy150Open StackStorm/st2/tools/st2-analyze-links.py/LinksAnalyzer._do_analyze/swapped operands of `in`