def METHOD_NAME(mocker, taskDictionary, bulkSubmissionFlag, result, expectedRes):
    res = wfTasks.prepareTransformationTasks(
        "", taskDictionary, "test_user", "test_group", bulkSubmissionFlag=bulkSubmissionFlag
    )
    assert res["OK"] == result
    if res["OK"]:
        for key, value in res["Value"].items():
            if key != "BulkJobObject":
                assert key in expectedRes["Value"]
                for tKey, tValue in value.items():
                    assert tKey in expectedRes["Value"][key]
                    if tKey == "TaskObject" and tValue:
                        assert isinstance(tValue, Job)
                    else:
                        assert tValue == expectedRes["Value"][key][tKey]