code: def suggest(query):
    '''
    Get a Wikipedia search suggestion for `query`.
    Returns a string or None if no suggestion was found.
    '''
  
    search_params = {
      'list': 'search',
      'srinfo': 'suggestion',
      'srprop': '',
    }
    search_params['srsearch'] = query
  
    raw_result = _wiki_request(search_params)
  
    if raw_result['query'].get('searchinfo'):
      return raw_result['query']['searchinfo']['suggestion']
  
    return Nonf suggest(query):
    '''
    Get a Wikipedia search suggestion for `query`.
    Returns a string or None if no suggestion was found.
    '''
  
    search_params = {
      'list': 'search',
      'srinfo': 'suggestion',
      'srprop': '',
    }
    search_params['srsearch'] = query
  
    raw_result = _wiki_request(search_params)
  
    if raw_result['query'].get('searchinfo'):
      return raw_result['query']['searchinfo']['suggestion']
  
    return None
docs: Get a Wikipedia search suggestion for `query`.
    Returns a string or None if no suggestion was found.