def METHOD_NAME(value, total, escape="", width=40):
    """Visualize progress with a progress bar.
    Parameters
    ----------
    value : int
        The current progress as a fraction of total.
    total : int
        The maximum value that 'value' may obtain.
    width : int
        The character width of the drawn progress bar. (Default value = 40)
    escape : str
        Escape character needed for some formats. (Default value = "")
    Returns
    -------
    str
        Formatted progress bar.
    """
    assert value >= 0 and total > 0
    bar_format = (
        escape
        + f"|{{bar:{width}}}"
        + escape
        + "| {n_fmt}/{total_fmt} ({percentage:<0.2f}%)"
    )
    return tqdm.format_meter(n=value, total=total, elapsed=0, bar_format=bar_format)