def METHOD_NAME(validation_file):
    def pre(a: str) -> bool:
        return 'six' in a
    fd, path_tmp = tempfile.mkstemp()
    dq = WayangContext() \
        .register(PYTHON) \
        .textfile(validation_file) \
        .filter(pre)
    return dq, path_tmp, pre