def METHOD_NAME(ns):
    if (ns.feedback_lock_duration and
            ns.feedback_lock_duration not in range(5, 301, 1)):
        raise InvalidArgumentValueError('Please specify the feedback lock duration from 5 to 300 seconds only.')