code: def test_unreadable_dir_on_syspath(self):
      # issue7367 - walk_packages failed if unreadable dir on sys.path
      package_name = "unreadable_package"
      d = os.path.join(self.dirname, package_name)
      # this does not appear to create an unreadable dir on Windows
      #   but the test should not fail anyway
      os.mkdir(d, 0)
      self.addCleanup(os.rmdir, d)
      for t in pkgutil.walk_packages(path=[self.dirname]):
          self.fail("unexpected package found")
  
imports: from pathlib import Path
  from test.support.import_helper import unload, CleanImport
  from test.support.warnings_helper import check_warnings, ignore_warnings
  import unittest
  import sys
  import importlib
  from importlib.util import spec_from_file_location
  import pkgutil
  import os
  import os.path
  import tempfile
  import shutil
  import zipfile
label_desc: Use image node_id 6 for calling the PkgutilTests obj's underlying member method code with example usage: obj.test_unreadable_dir_on_syspath() without return types