def _get_caption(table):
    """
    Get the caption of the associated wiki table.
    
    Parameters
    ----------
    table: BeautifulSoup
    
    Returns
    -------
    str
    """
    caption_text = None
    caption = table.find("caption")
    if caption:
        caption_text = caption.text.strip()
    return caption_text