Use IPythonInputSplitter.transform_cell to validate IPython syntax.