<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean_value(self, value):
 """Cleans a value, using either the user provided clean_value, or cls.reduce_value."""

    if self._clean_value:
      return self._clean_value(value)
    else:
      return self.reduce_value(value)