def METHOD_NAME(self, data):
    if data is None:
        return None
    self.data = {}
    self._qas = {}
    for qid, content in data.items():
        if isinstance(content, dict):
            self.data[qid] = content['question']
            self._qas[qid] = content
        else:
            self.data[qid] = content
    if len(self._qas) == 0:
        del self._qas
    return True