code: def get_uid(self, search):
          
          if self.is_primary:
              return next((u for u in self._uids if search in filter(lambda a: a is not None, (u.name, u.comment, u.email))), None)
          return self.parent.get_uid(search)
docs: Find and return a User ID that matches the search string given.
  
          :param search: A text string to match name, comment, or email address against
          :type search: ``str``, ``unicode``
          :return: The first matching :py:obj:`~pgpy.PGPUID`, or ``None`` if no matches were found.