Getting/setting layered material parameters using python

The Global node is nice, but I do not know how to use the parameter set node, the material instance constant pin where to get?

Oh, just like this