[#3336] Add code generation flag to enable / disable imports in
generated code