parameters: (self)
docstring: Function to check for input errors.
  
        Raises:
           ValueError: Raised if the value chosen is not one of the valid options.
docstring_summary: Function to check for input errors.
docstring_tokens: Function to check for input errors .
function: def check(self):
        """Function to check for input errors.
  
        Raises:
           ValueError: Raised if the value chosen is not one of the valid options.
        """
  
        super(InputAttribute,self).check()
        if not (self._valid is None or self.value in self._valid):
           #This checks that the user has set the value to a valid value.
           raise ValueError(str(self.value) + " is not a valid option (" + str(self._valid) + ")")
function_tokens: def check ( self ) : super ( InputAttribute , self ) . check ( ) if not ( self . _valid is None or self . value in self . _valid ) : #This checks that the user has set the value to a valid value. raise ValueError ( str ( self . value ) + " is not a valid option (" + str ( self . _valid ) + ")" )