def check_segments(codepoint, segments):
    i = bisect_left(segments, (codepoint,))
    if i < len(segments):
        segment = segments[i - 1]
        if codepoint <= segment[1][1]:
            return segment[2]
    return None
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/unicodedata.py/check_segments/original