Error when using an OSL shader with node_texture.h

If the OSL shader body contains an import of the “node_texture.h” module, this shader can’t be executed in the latest versions of Blender.

When trying to execute such a shader, Blender throws an error: