code: def validate(self):
          
          try:
              assert self.question_type == exercises.INPUT_QUESTION, "Assumption Failed: Question should be input answer type"
              assert len(self.answers) > 0, "Assumption Failed: Multiple selection question should have answers"
              for a in self.answers:
                  assert 'answer' in a, "Assumption Failed: Answers must have an answer field"
                  try:
                      float(a['answer'])
                  except ValueError:
                      assert False, "Assumption Failed: Answer {} must be numeric".format(a['answer'])
              for h in self.hints:
                  assert isinstance(h, str), "Assumption Failed: Hint in hints list is not a string"
              return super(InputQuestion, self).validate()
          except AssertionError as ae:
              raise InvalidQuestionException("Invalid question: {0}".format(self.__dict__))
docs: validate: Makes sure input question is valid
              Args: None
              Returns: boolean indicating if input question is valid