def METHOD_NAME(
    mock_read_last_yaml_entries, mock_pid_running, line, exit_code, is_running, error_msg,
):
    fake_path = "/file/path"
    mock_read_last_yaml_entries.return_value = line
    mock_pid_running.side_effect = [is_running]
    actual_exit_code, actual_error_msg = recover_batch.get_exit_code(fake_path)
    assert actual_exit_code == exit_code
    assert actual_error_msg == error_msg