code: def loadFromTemplate(template, stim=None):
          
          stim = StimulusModel.loadFromTemplate(template, stim=stim)
          qstim = QStimulusModel(stim)
          qstim.setEditor(template['testtype'])
          return qstim
docs: Initialized this stimulus from a saved *template*
  
          :param template: doc from a previously stored stimulus via :class:`templateDoc`
          :type template: dict