code: def mkdtemp(*args, **kwargs):
      
      remove = kwargs.pop('remove', True)
      path = tempfile.mkdtemp(*args, **kwargs)
      try:
          yield path
      finally:
          if remove:
              shutil.rmtree(path)
docs: Create a temporary directory in a with-context
  
      keyword remove: Remove the directory when leaving the
      context if True. Default is True.
      other keywords arguments are given to the tempfile.mkdtemp
      function.