def shared_empty(dim=2, dtype=None):
    if dtype is None:
        dtype = theano.config.floatX

    shp = tuple([1] * dim)
    return theano.shared(np.zeros(shp, dtype=dtype))
'write()' callable as specified by PEP 333
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/utils.py/shared_empty--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/wsgiref/handlers.py/BaseHandler.write