Converts a pybamm expression tree into pure python code that will calculate the result of calling evaluate(t, y) on the given expression tree.
symbol (pybamm.Symbol) – The symbol to convert to python code
Acts as a drop-in replacement for pybamm.Symbol.evaluate()