def METHOD_NAME(ndim):
    shape = (5,) * ndim
    np_arr = mk_seq_array(np, shape)
    num_arr = mk_seq_array(num, shape)
    shape_in = (3,) * ndim
    np_indices = mk_seq_array(np, shape_in)
    num_indices = mk_seq_array(num, shape_in)
    shape_val = (2,) * ndim
    np_values = mk_seq_array(np, shape_val) * 10
    num_values = mk_seq_array(num, shape_val) * 10
    np.put(np_arr, np_indices, np_values)
    num.put(num_arr, num_indices, num_values)
    assert np.array_equal(np_arr, num_arr)