def create_question(self, question, type=None, **kwargs):
        if not type:
            return Question(question, **kwargs)

        if type == 'choice':
            return ChoiceQuestion(question, **kwargs)

        if type == 'confirmation':
            return ConfirmationQuestion(question, **kwargs)
Returns a Question of specified type.
dataset/ETHPy150Open sdispater/cleo/cleo/commands/command.py/Command.create_question