def cyfieithu_testun(testun, peiriant, iaithffynhonnell, iaithtarged):
    translations = get_translations(testun, peiriant, iaithffynhonnell, iaithtarged)

    if not len(translations):
        return testun
   
    return translations[0]['translatedText']
Test that replay.dump raises if the tempate_name is not a valid str.
dataset/ETHPy150Open PorthTechnolegauIaith/moses-smt/tut/demo1.py/cyfieithu_testun--crossover with--dataset/ETHPy150Open audreyr/cookiecutter/tests/replay/test_dump.py/test_type_error_if_no_template_name