def set_index(self, origin_index, target_index):
    if isinstance(origin_index, str):
        self.o2t[origin_index] = target_index
        self.t2o[target_index] = origin_index
    elif isinstance(origin_index, list):
        self.o2t['-'.join(origin_index)] = target_index
        self.t2o[target_index] = origin_index
def set_index(self, origin_index, target_index):
    if isinstance(origin_index, str):
        self.o2t[origin_index] = target_index
        self.t2o[target_index] = origin_index
    elif isinstance(origin_index, list):
        self.o2t['-'.join(origin_index)] = target_index
        self.t2o[target_index] = origin_index