def METHOD_NAME(request):
    tmp_dir = tempfile.mkdtemp(prefix="salt_pass_")
    pass_path = os.path.join(tmp_dir, "pass")
    with salt.utils.files.fopen(pass_path, "w") as f:
        f.write("#!/bin/sh\n")
        # return error message with unicode characters
        f.write('echo "ERROR: αβγ" >&2\n')
        f.write("exit 1\n")
    os.chmod(pass_path, 0o755)
    yield pass_path
    shutil.rmtree(tmp_dir)