def _insert(lst: list, i: int) -> None:
    """ Move L[i] to where it belongs in L[i + 1]

    Precondition: L[:i] is sorted from smallest to largest.

    >>> L = [7, 3, 5, 2]
    >>> _insert(L, 1)
    >>> L
    [3, 7, 5, 2]
    """
    # The value to be inserted into the sorted part of the list
    value = lst[i]

    # Find the index, j, where the value belongs.
    # Make room for the value by shifting
    while i > 0 and lst[i - 1] > value:
        # Shift L[j - 1] one position to the right
        lst[i] = lst[i - 1]
        i -= 1

    # Put the value where it belongs
    lst[i] = value

    return None

    # Alternative version
    # j = i
    # while j != 0 and lst[j - 1] > value:

    # Shift L[j - 1] one position to the right
    # lst[j] = lst[j - 1]
    # j -= 1

    # Put the value where it belongs
    # lst[j] = value

    # return None