Python in DeepStream: error {Internal data stream error} while running deepstream-test1

Hi there

Could you please tell me how can I unset DISPLAY?
There is the following line in the main():
nvosd = Gst.ElementFactory.make(“nvdsosd”, “onscreendisplay”)

Should I change the arg to anything else?

Thank you