def METHOD_NAME(cls, language):
    from duckling import DucklingWrapper
    try:
        # languages in duckling are eg "de$core"
        return DucklingWrapper(language=language)
    except ValueError as e:  # pragma: no cover
        raise Exception("Duckling error. {}".format(e))