docstr: Test `_read_manual_review_tmp_file`.
docstr_tok: ["Test","`","_read_manual_review_tmp_file","`","."]
code: def test_read_manual_review_tmp_file(self) -> None:
      """Test `_read_manual_review_tmp_file`."""
  
      with SoftTemporaryDirectory() as tmp_dir:
          tmp_path = Path(tmp_dir) / "file.txt"
  
          with tmp_path.open("w") as f:
              f.writelines(
                  [
                      "# something commented out\n",
                      "###\n",
                      "\n\n\n\n",  # some empty lines
                      "    # Something commented out after spaces\n",
                      "a_revision_hash\n",
                      "a_revision_hash_with_a_comment # 2 years ago\n",
                      "    a_revision_hash_after_spaces\n",
                      "  a_revision_hash_with_a_comment_after_spaces # 2years ago\n",
                      "    # hash_commented_out #  2 years ago\n",
                      "a_revision_hash\n",  # Duplicate
                      "",  # empty line
                  ]
              )
  
          # Only non-commented lines are returned
          # Order is kept and lines are not de-duplicated
          self.assertListEqual(
              _read_manual_review_tmp_file(tmp_path),
              [
                  "a_revision_hash",
                  "a_revision_hash_with_a_comment",
                  "a_revision_hash_after_spaces",
                  "a_revision_hash_with_a_comment_after_spaces",
                  "a_revision_hash",
              ],
          )
  
imports: import os
  import unittest
  from pathlib import Path
  from tempfile import mkstemp
  from unittest.mock import Mock, patch
  from InquirerPy.base.control import Choice
  from InquirerPy.separator import Separator
  from huggingface_hub.commands.delete_cache import _CANCEL_DELETION_STR, DeleteCacheCommand, _ask_for_confirmation_no_tui, _get_expectations_str, _get_tui_choices_from_scan, _manual_review_no_tui, _read_manual_review_tmp_file
  from huggingface_hub.utils import SoftTemporaryDirectory, capture_output
  from .testing_utils import handle_injection
label_desc: Use image node_id 5 for calling the TestDeleteCacheHelpers obj's underlying member method code with example usage: obj.test_read_manual_review_tmp_file() without return types