I ran the code again and followed following steps,
in device manager following icons were displayed,

After that I updated the drivers both ways, manually and by clicking on "let me pick"

But even after doing that, still generic printer is not shown in the printer section,

And when I go to devices and printers folder, it shows like this,

Can u suggest what can I do to fix this issue. In addition I have a doubt to clear out. The printing process that we going to do here is fully virtual one instead of physical one. Am I right ?
@EdwinHz iMXRT1170