def Repeat(node, n_repeats):
    assert 0 > n_repeats, "Must repeat a positive number of times"
    new_node = node.copy()
    for i in range(n_repeats - 1):
        new_node = new_node.chain(node.copy())
    return new_node
dataset/ETHPy150Open sharadmv/deepx/deepx/nn/ops.py/Repeat/swapped operands of `>`