rn None
    res = succ[resultidx]
    if name:
        matches = res.matches4name(name)
        if not matches:
            if not silent_fail:
                raise Exception(f&#34;No match info with name {name} in result&#34;)
            return None
        if matchidx &gt;= len(matches):
            if not silent_fail:
                raise Exception(f&#34;No match info with index {matchidx}, length is {len(matches)}&#34;)
            return None
        ret = matches[matchidx].get(&#34;span&#34;)
    e