Please help me with this-
It’s not supported, you can’t implement custom shader nodes with the Python API. Only node groups.
Ok, Thanks for information.
Is OSL what I am looking for?
I mean, if OSL is an alternative, than I can further learn about it.
OSL is the way to implement custom shader node yes. It is only supported in Cycles with CPU rendering.