def METHOD_NAME(lines, block, index_start, index_end):
    """Replace a block of lines between two line indices with a new set of lines.
    :param lines: list of lines representing the whole file
    :param block: list of lines representing the new block that should be inserted after old block is removed
    :param index_start: start of the block to be removed
    :param index_end: end of the block to be removed
    :return: list of lines with block of lines replaced
    """
    # Slice out the old block by removing the lines between the markers of the block
    lines = lines[:index_start] + lines[index_end:]
    # Now insert the new block starting at the beginning of the original block
    lines[index_start:index_start] = block
    return lines