<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_value_based_inclusive_interval(cls, field, max_value=None):
 """ This is applicable to fields with max_value and min_value as validators. Note: 1. This is different from fields with max_length as a validator 2. This means that the two methods based on value and length are almost the same method but for the max_* attribute that is being checked. Probably need to DRY this out at some point. """

        if field.max_value is None:
            field.max_value = max_value or MAX_LENGTH

        if field.min_value is None:
            field.min_value = 0

        Interval = namedtuple('interval', ['start', 'stop'])

        return Interval(start=field.min_value, stop=field.max_value)