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