def get_id(self, version: int) -> str:
    if (version == 1):
        ids = _id_operator_v1
        if (self.op not in ids):
            raise NoOldIdError()
    else:
        ids = _id_operator_v2
    if (self.op not in ids):
        raise Exception(('Internal error: Build-in operator "%s" can not be mapped to an id.' % self.op))
    return ids[self.op]
def get_id(self, version: int) -> str:
    if (version == 1):
        ids = _id_operator_v1
        if (self.op not in ids):
            raise NoOldIdError()
    else:
        ids = _id_operator_v2
    if (self.op not in ids):
        raise Exception(('Internal error: Build-in operator "%s" can not be mapped to an id.' % self.op))
    return ids[self.op]