code: def write_file(self, target_path, html):
          
          logger.debug("Building to {}{}".format(self.fs_name, target_path))
          with self.fs.open(smart_text(target_path), 'wb') as outfile:
              outfile.write(six.binary_type(html))
              outfile.close()
docs: Writes out the provided HTML to the provided path.