I tend to load the .obj file with its color in python and save it as png. I had many searches, but none were suitable for my purpose. here is the code I found for saving as a png file:
and output appears like this:
but the desired output is like this one:

Any help, please.


Finally, I found the answer in the vedo library it can be installed easily:
by these simple codes, this output came out:
I downloaded 3d obj file by its texture from here.