def verboseprint_func(verbose):
    """
    Set verobsity.

    Args:
        verbose (bool): Verbosity {True, False}

    Returns:
        function: verboseprint function that prints as per verbosity.
    """
    if verbose:
        def verboseprint(*args, **kwargs):
            # print the args and kwargs
            print(*args, **kwargs)
    else:
        def verboseprint(*args, **kwargs):
            # do-nothing function
            verboseprint = lambda *a, **k: None
    return verboseprint