def METHOD_NAME(mock_run_cmd):
    subcmd = ['/usr/bin/fw_setenv', 'boot_once']
    image0, image1 = ['run sonic_image_1'], ['run sonic_image_2']
    expected_call0, expected_call1 = [call(subcmd + image0)], [call(subcmd + image1)]
    bootloader = uboot.UbootBootloader()
    bootloader.get_installed_images = Mock(return_value=installed_images)
    bootloader.set_next_image(installed_images[0])
    assert mock_run_cmd.call_args_list == expected_call0
    mock_run_cmd.call_args_list = []
    bootloader.set_next_image(installed_images[1])
    assert mock_run_cmd.call_args_list == expected_call1