def METHOD_NAME(p_bar):
    """
    Refresh displayed progress bar `p_bar` periodically until it is complete.
    Parameters
    ----------
    p_bar : tqdm.tqdm
        The progress bar wrapper being displayed to refresh.
    """
    while p_bar.total > p_bar.n:
        time.sleep(1)
        if p_bar.total > p_bar.n:
            p_bar.refresh()