code: def questions(self, type=None):
          
          if type is None:
              type = Question
  
          if not issubclass(type, Question):
              raise TypeError("{} is not a valid question type.".format(type))
  
          return type.query.filter_by(participant_id=self.id).all()
docs: Get questions associated with this participant.
  
          Return a list of questions associated with the participant. If
          specified, ``type`` filters by class.