function mkdtemp() {
  return new Promise((resolve, reject) => {
    tmp.dir({unsafeCleanup: true}, (err, tmpPath) => {
      if (err) {
        return reject(err);
      }
      resolve(tmpPath);
    });
  });
}
@return {Promise<string>} A promise that resolves to the path.