code: def _parse_pool_query(self, query_str):
          
          sp = smart_parsing.PoolSmartParser()
          query = sp.parse(query_str)
          return query
docs: Parse a smart search query for pools
  
              This is a helper function to smart_search_pool for easier unit
              testing of the parser.