def METHOD_NAME(ns):
    if (ns.c2d_max_delivery_count and
            ns.c2d_max_delivery_count not in range(1, 101, 1)):
        raise ArgumentError(None, 'Please specify the maximum delivery count from 1 to 100 only for cloud-to-device'
                                  ' messages in the device queue.')