def permutation(random_state, size=None, n=1, ndim=None, dtype='int64'):
    if size is None or size == ():
        if not(ndim is None or ndim == 1):
            raise TypeError(
                "You asked for just one permutation but asked for more then 1 dimensions.")
        ndim = 1
        size = ()
        bcast = ()
    else:
        ndim, size, bcast = _infer_ndim_bcast(ndim, size)
    # print "NDIM", ndim, size
    op = RandomFunction(permutation_helper,
                        tensor.TensorType(dtype=dtype,
                                          broadcastable=bcast + (False,)),
                        ndim_added=1)
    return op(random_state, size, n)
called by the _inherit method in template modules to set
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/raw_random.py/permutation--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Mako-0.8.1/mako/runtime.py/_inherit_from