I got that.
Actually a user should not call the method scene.generate_visualization_dict, in general cases.
He should call it Only when he needs the dictionary in the python form, i.e he wants to save it in a variable or something.

Otherwise he should always call  scene.generate_visualization_json, with all the arguments. There is absolutely no need of calling both of them.