def _range_check(self, value, min_value, max_value):
if value < min_value or value > max_value:<EOL><INDENT>raise ValueError('<STR_LIT>' % (self.__class__.__name__, value, min_value, max_value))<EOL><DEDENT>
Utility method to check that the given value is between min_value and max_value.