def METHOD_NAME(warning, min_verbosity=0, category=UserWarning):
    """
    Interface for warnings in parallel runs. Can be used like warnings.warn.
    Linked to the verbosity option in parameters. By default, all messages are
    treated as high level messages and will be printed.
    Parameters
    ----------
    warning
        Warning to be printed.
    min_verbosity : int
        Minimum number of verbosity for this output to still be printed.
    category : class
        Category of the warning to be thrown.
    """
    if current_verbosity >= min_verbosity:
        if get_rank() == 0:
            warnings.warn(warning, category=category)