def index_along_axis(index, ndim, axis):
    indices = [slice(None)] * ndim
    indices[axis] = index
    return tuple(indices)
Streams where this peer is a client do not allow sending pushed frames.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/insert_along_axis.py/index_along_axis--crossover with--dataset/ETHPy150Open python-hyper/hyper-h2/test/test_state_machines.py/TestStreamStateMachine.test_stream_state_machine_forbids_sending_pushes_from_clients