def parse(source, mode='exec', **opts):
    from pyast import expression_from_text, statement_from_text
    if mode is 'exec':
        return statement_from_text(source)
    elif mode is 'eval':
        return expression_from_text(source)
    else:
        raise ValueError, "illegal parsing mode (%s)" % mode
Test gradient of the rotation cost function for Gaussian ARD arrays.
dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/compiler/passes.py/parse--crossover with--dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/tests/test_transformations.py/TestRotateGaussianARD.test_cost_gradient