def METHOD_NAME(self, path):
    if not path.endswith('.json'):
        self.data = load_queries(path)
        return True
    # Load QAs
    self.data = {}
    self._qas = {}
    with open(path) as f:
        for line in f:
            qa = ujson.loads(line)
            assert qa['qid'] not in self.data
            self.data[qa['qid']] = qa['question']
            self._qas[qa['qid']] = qa
    return self.data