def METHOD_NAME(ns):
    if (ns.c2d_ttl and
            ns.c2d_ttl not in range(1, 49, 1)):
        raise ArgumentError(None, 'Please specify the default time from 1 to 48 hours to live for cloud-to-device'
                                  ' messages in the device queue.')