code: def tempdir(*args, **kwargs):
      
  
      d = tempfile.mkdtemp(*args, **kwargs)
      try:
          yield d
      finally:
          shutil.rmtree(d)
docs: A contextmanager to work in an auto-removed temporary directory
  
      Arguments are passed through to tempfile.mkdtemp
  
      example:
  
      >>> with tempdir() as path:
      ...    pass