code: def clean(self, value):
          
  
          if isinstance(value, numpy.ndarray):
              return value
          elif isinstance(value, (list, tuple)):
              return numpy.array(value)
  
          raise ParameterNotValidError
docs: Cleans and returns the given value, or raises a ParameterNotValidError exception