original_docstring: 
      Ensures that a path is an existing empty folder.
      
docstring: Ensures that a path is an existing empty folder.
docstring_tokens: Ensures that a path is an existing empty folder .
code: def check_tmp_path(tmp_path):
      """
      Ensures that a path is an existing empty folder.
      """
      if not os.path.isdir(tmp_path):
          os.mkdir(tmp_path)
      elif not os.listdir(tmp_path):
          raise PDFError('Temporary directory must be empty.')
code_tokens: def check_tmp_path ( tmp_path ) : if not os . path . isdir ( tmp_path ) : os . mkdir ( tmp_path ) elif not os . listdir ( tmp_path ) : raise PDFError ( 'Temporary directory must be empty.' )
short_docstring: Ensures that a path is an existing empty folder.
short_docstring_tokens: Ensures that a path is an existing empty folder .
comment: """
      Ensures that a path is an existing empty folder.
      """