def cleanNetworkNodes(self, all=0, withinProtectedName=1):  #@ReservedAssignment
        """
        SYNOPSIS: Cleans out network nodes
        INPUTS*: all = 	True - Take care of duplicates of our implemented sceneBrain and asset hubs
                                False - Remove all network nodes
                withinProtected - Search only within protected names
        RETURNS: None
        """
        nNodes = ls(type='network')
        protectedNames = ['sceneBrain', 'assetHub', 'shaderContainer', 'collisionContainer', 'meshContainer',
                          'groupContainer', 'lodContainer']
        if nNodes:
            for nNode in nNodes:
                if not nNode.isReferenced():
                    if withinProtectedName:
                        for p in protectedNames:
                            if search(p, nNode.name()):
                                if not nNode.name() == p:
                                    self.disconnectAttrs(nNode)
                                    delete(nNode)
                    else:
                        if not all:
                            if not protectedNames in nNode.name():
                                self.disconnectAttrs(nNode)
                                delete(nNode)
                        else:
                            self.disconnectAttrs(nNode)
                            delete(nNode)
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaMeshCore.cleanNetworkNodes/swapped operands of `in`