code: def temporary_directory():
      
      dir_name = tempfile.mkdtemp()
      yield dir_name
      if os.path.exists(dir_name):
          shutil.rmtree(dir_name)
docs: make a temporary directory, yeild its name, cleanup on exit