def find_multiline_comments(lines_to_remove, end, doc, line_count, quote_type):
    '''
    :param lines_to_remove: [int], a zero based index that represents lines to
                            to be removed from a document.
    :param end: bool, if True then the first of the two multiline comments has
                been found.
    :param doc: [str], a document cast into an array.
    :param line_count: int, zero based index that points to the current line
                 in an docuement.
    :param quote_type: str, one of the two multiline quotes available in
                       Python.
    :return: tuple, lines_to_remove = same as that passed in, with additions.
                    end = bool, updated version of end paramater.
    '''

    # Exceptions: Quote type needs to exist, to get the first line of a
    # multine comment it cannot be the last.
    if quote_type and end is False and line_count < len(doc) - 1:
        quote_type = quote_type[0]
        end = True

        if is_multiline_string(doc, line_count, quote_type):
            # If a multiline string is found move the cursor until the end
            # of the multiline string.
            line_count += 1
            while quote_type not in doc[line_count]:
                line_count += 1
                if quote_type in doc[line_count]:
                    line_count += 1
                    break
            return lines_to_remove, False, line_count

        lines_to_remove.append(line_count)
        return lines_to_remove, end, line_count

    elif end and not quote_type:
        lines_to_remove.append(line_count)

    elif end and quote_type:
        lines_to_remove.append(line_count)
        end = False

    return lines_to_remove, end, line_count
dataset/ETHPy150Open rubik/radon/radon/raw.py/find_multiline_comments/original