TextureMaptoSphere Scripting

Hello, how would I go about setting the texturemaptosphere texture image via python script, from what I understand I would have to manually create the proxy that accomplishes this since the trace command wont spit out a texture map.

I am not sure how to pass the image into Paraviews texture map function.

I loaded the image via

texture = servermanager.rendering.ImageTexture()
texture.FileName = “C:\path\texturemap.jpg”

texture = servermanager.rendering.ImageTexture()
texture.FileName = "C:\path\texturemap.jpg"
r=GetDisplayProperties()
r.Texture = texture
Render()