code: def search(self, pattern, count=None):
          
          return self._scan(match=pattern, count=count)
docs: Search the keys of the given hash using the specified pattern.
  
          :param str pattern: Pattern used to match keys.
          :param int count: Limit number of results returned.
          :returns: An iterator yielding matching key/value pairs.