def METHOD_NAME(gates):
    circuit = star_circuit()
    connectivity = star_connectivity()
    routing = ShortestPaths(connectivity=connectivity)
    placer = ReverseTraversal(connectivity, routing, depth=gates)
    layout = placer(circuit)
    assert_placement(circuit, layout)