def METHOD_NAME (size, suffix = "", compact = True, opts = None):
    if opts is None:
        opts = ()
    txt = "NaN"
    if type(size) == str:
        return "N/A"
    u = ''
    if compact:
        for unit in ['','K','M','G','T','P']:
            if abs(size) < 1000.0:
                u = unit
                break
            size /= 1000.0
    if isinstance(size, float):
        if compact:
            txt = "%g" % round(size, 2)
        else:
            txt = "%3.2f" % size
    else:
        txt = "{:,}".format(size)
    if u or suffix:
        txt += " {:}{:}".format(u, suffix)
    if isinstance(opts, tuple):
        return format_text(txt, *opts)
    else:
        return format_text(txt, (opts))