code: def deselect_nodenames(self, *substrings: str) -> 'Selection':
          
          self.nodes -= self.search_nodenames(*substrings).nodes
          return self
docs: Restrict the current selection to all nodes with a name
          not containing at least one of the given substrings (does not
          affect any elements).
  
          See the documentation on method |Selection.search_nodenames| for
          additional information.