def collatz(start):
    start = int(start)
    begin = time.time()
    steps = []
    while start != 1:
        steps.append(start)
        if start > 1:
            if start % 2 == 0:
                start = start / 2
            else:
                start = start * 3 + 1
    return steps, time.time() - begin
Test that a barrier is passed in lockstep
dataset/ETHPy150Open saltstack/salt/salt/modules/test.py/collatz--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/lock_tests.py/BarrierTests.test_barrier