import typing


def _where(
    condition: typing.List[bool], replace_value: typing.Any, original_list: typing.List
) -> typing.List:
    """
    Replaces elements in `original_list[i]` with `replace_value` where the `condition[i]`
    is True.

    :param condition: List of booleans indicating where to put replace_value
    :param replace_value: The value to insert into the list
    :param original_list: The list of values to modify
    :return: A new list with replace_value inserted where condition elements are True
    """
    return [
        replace_value if condition[i] else original_list[i]
        for i in range(len(condition))
    ]