def compile_vprint_function(verbose):
    """Compile a verbose print function

    Args:
        verbose (bool): is verbose or not

    Returns:
        [msg, *args]->None: a vprint function
    """

    if verbose:
        return lambda msg, *args: print(msg.format(*args))

    return lambda *_: None