Code Missing From Manual

I saw this code (genLabelText) used in the asteroid sample, and wanted to know its function. I searched the manual for it but it wasn’t there. Where can I find infomation on this code? Is there any document that give info on all, or most of the codes used in Panda3d? Thanks

it starts on line 70 of

#Macro-like function used to reduce the amount to code needed to create the
#on screen instructions
def genLabelText(text, i):
  return OnscreenText(text = text, pos = (-1.3, .95-.05*i), fg=(1,1,0,1),
                      align = TextNode.ALeft, scale = .05)

OnscreenText on the other hand is this

I think I found it in the manual too.