def METHOD_NAME(val: Any, output_format: str = "standard", errors: str = "coarse") -> Any:
    """
    Reformat a number string with proper separators and whitespace.
    Parameters
    ----------
    val
           The value of number string.
    output_format
           If output_format = 'compact', return string without any separators or whitespace.
           If output_format = 'standard', return string with proper separators and whitespace.
           If output_format = 'bic', return the BIC for the bank that this number refers to.
    """
    val = str(val)
    if val in NULL_VALUES:
        return [np.nan]
    if not validate_be_iban(val):
        if errors == "raise":
            raise ValueError(f"Unable to parse value {val}")
        error_result = val if errors == "ignore" else np.nan
        return [error_result]
    if output_format == "compact":
        result = [iban.compact(val)]
    elif output_format == "standard":
        result = [iban.format(val)]
    elif output_format == "bic":
        result = [iban.to_bic(val)]
    return result