Error: Invalid or unexpected token

EDIT: Found that ‘\nYour status is’ and another label text needed the linefeed escaped as ‘\nYour status is’ (with TWO slashes - they seem to get removed in here) and then it all worked!!! Still need suggestion about the get_image() not available!!!
Attempting to use the code from one of the examples/sandboxes for doughnut and receive an error in PyCharm after copying and pasting the sandbox python code, : “Chart error: Error: Invalid or unexpected token - 38:2”. Also, receiving the error that there is no “get_image” attribute for qc?