def variables_and_orphans(i, o):
    """
    WRITEME

    """
    def expand(r):
        if r.owner and r not in i:
            l = list(r.owner.inputs) + list(r.owner.outputs)
            l.reverse()
            return l
    variables = stack_search(deque(o), expand, 'dfs')
    orphans = [r for r in variables if r.owner is None and i not in r]
    return variables, orphans
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/graph.py/variables_and_orphans/swapped operands of `not in`