blender is not executing my code

i want to make an empty display as an image, and the tooltip said
bpy.types.Object.empty_draw_type = ‘IMAGE’
and the console doen’t give an error.
but when executing the script, the empty display stays at plain axis, the default.

why is it just forgetting this line of code?


zeffii showed me that Object is not declared, so you get an error…