def METHOD_NAME(tmpl):
    if re.match(r'[a-zA-Z_]+$', tmpl):
        return f'%({tmpl})s'
    from ..YoutubeDL import YoutubeDL
    err = YoutubeDL.validate_outtmpl(tmpl)
    if err:
        raise err
    return tmpl