def find_highlight_index_in_text(text, highlight):
    """ 
    return start and end character indices for the sub-string (highlight)
    """
    if highlight not in text:
        return (None, None)

    # returns left right
    left_ind = text.index(highlight)
    right_ind = left_ind + len(highlight)

    return (left_ind, right_ind)
 
    return start and end character indices for the sub-string (highlight)
    
examples/GPT-examples/utilities.py