def permute_dimensions(x, pattern):
    pattern = tuple(pattern)
    return x.dimshuffle(pattern)
test_redirects_to_threads.
dataset/ETHPy150Open sharadmv/deepx/deepx/backend/theano_backend.py/permute_dimensions--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/MessageCreateViewTest.test_redirects_to_threads