How to import package nodes into a python script

Sure it is:

ElementQueries.OfCategory(category);

A perhaps more useful nested example which gets all Views in the Revit model:
ElementQueries.OfCategory(Category.ByName("Views"));

Basically ANY zero touch node can be called via design script once loaded by Dynamo. They don’t all have smartsense, autofill, or other benefits. You may have to do some guessing. Some require additional tinkering use them well. And others have components which would make it so you really wouldn’t want to use them (ie: dropdown nodes), but that doesn’t mean you can not do it.

This topic has some goodies from @Vikram_Subbaiah, @Kulkul and @Dimitar_Venkov down at the end.

2 Likes