def METHOD_NAME(override_existing_values):
    list_one = ["greet", {"inform": {"use_entities": []}}, "start_form", "goodbye"]
    list_two = ["goodbye", {"inform": {"use_entities": ["destination"]}}]
    if override_existing_values:
        expected = [
            "greet",
            {"inform": {"use_entities": ["destination"]}},
            "start_form",
            "goodbye",
        ]
    else:
        expected = ["goodbye", {"inform": {"use_entities": []}}, "greet", "start_form"]
    result = rasa.shared.utils.common.merge_lists_of_dicts(
        list_one, list_two, override_existing_values
    )
    assert result == expected