How does ghpython add menus and menu items to grasshopper and set icons for each menu item?

I know that overriding the assemblypriority class in c# can achieve the purpose described in my title, but I only know python. Can anyone help?

I have the same problem, how to change the icon of the Python plugin in Ghpython. In addition, when making GHpy, the imported ICONS are very vague, how to make it look better