def is_origin_indexed(self, origin_index):
    if isinstance(origin_index, str):
        return (origin_index in self.o2t)
    elif isinstance(origin_index, list):
        return ('-'.join(origin_index) in self.o2t)
def is_origin_indexed(self, origin_index):
    if isinstance(origin_index, str):
        return (origin_index in self.o2t)
    elif isinstance(origin_index, list):
        return ('-'.join(origin_index) in self.o2t)