def METHOD_NAME(ns):
    if (ns.fileupload_sas_ttl and
            ns.fileupload_sas_ttl not in range(1, 25, 1)):
        raise ArgumentError(None, 'Please specify the period of time from 1 to 24 hours for which the SAS URI'
                                  ' generated by IoT Hub for file upload is valid.')