def write_script(self, script_name, contents, mode="t", *ignored):
        log.info("Installing %s script to %s", script_name, self.install_dir)
        target = os.path.join(self.install_dir, script_name)
        self.outfiles.append(target)

        if not self.dry_run:
            ensure_directory(target)
            f = open(target,"w"+mode)
            f.write(contents)
            f.close()
            chmod(target,0755)
* Draw a valid BST, and swap a pair of nodes to get an invalid BST.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/setuptools-0.6c11/setuptools/command/install_scripts.py/install_scripts.write_script--crossover with--dataset/ETHPy150Open algorhythms/LeetCode/255 Verify Preorder Sequence in Binary Search Tree.py/Solution.verifyPreorder