Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/n/u/nuke.env-HEAD/menu.py   nuke.env(Download)
 
# The Channel menu
import branchout
m.addCommand("Branch Out Channels", "branchout.branchout()", index=0)
m.addCommand('ChannelList', "nuke.createNode('ChannelList')", index=1)