def translate_index_to_position(self, index):
        # Find start of this line.
        row, row_index = self._find_line_start_index(index)
        col = index - row_index

        return row, col
Given an index for the text, return the corresponding (row, col) tuple.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.translate_index_to_position