original_docstring: 
      ensures the given path is a empty directory
      
docstring: ensures the given path is a empty directory
docstring_tokens: ensures the given path is a empty directory
code: def ensure_reset_dir(path):
      """
      ensures the given path is a empty directory
      """
      if path.exists():
          rmtree(path, force=True)
      path.mkdir()
code_tokens: def ensure_reset_dir ( path ) : if path . exists ( ) : rmtree ( path , force = True ) path . mkdir ( )
short_docstring: ensures the given path is a empty directory
short_docstring_tokens: ensures the given path is a empty directory
comment: """
      ensures the given path is a empty directory
      """