docs: def local_temp_dir():
      """
      Creates a local temporary directory. The directory is removed when no longer needed. Failure to do
      so will be ignored.
  
      :return: Path to the temporary directory.
      :rtype: unicode
      """
      path = tempfile.mkdtemp()
      yield path
      shutil.rmtree(path, ignore_errors=True)