def METHOD_NAME(self, idec, nbit, signed=False, name=""):
    r"""Check whether the data (idec) is in the range
    range is :math:`[0, 2^nbit-1]` for unsigned
    range is :math:`[-2^{nbit-1}, 2^{nbit-1}-1]` for signed.
    """
    prec = np.int64(2**nbit)
    if signed:
        pmax = prec // 2 - 1
        pmin = -pmax
    else:
        pmax = prec - 1
        pmin = 0
    I1 = idec < pmin
    I2 = idec > pmax
    if jdata_sys["debug"]:
        if np.sum(I1) > 0:
            log.warning(
                f"NVNMD: there are data {name} smaller than the lower limit {pmin}"
            )
        if np.sum(I2) > 0:
            log.warning(
                f"NVNMD: there are data {name} bigger than the upper limit {pmax}"
            )