Get Texture Color of Arbitrary XYZ Point

Hello everyone,

Suppose, I have a procedural texture like on the Figure below (it’s just for example). Is it possible to get a color of a specified point by means of Python? If yes, how can it be achieved? So, in other words, I need to get the Color output value of the Hue Saturation Value node for a specified point. The point itself may or may not belong to the surface (so, it’s like volumetric stuff).

Tried to find some information on the Internet but found only some for a surface (and not a volume).