code: def test_01_03_unicode_directory(self):
      old = cellprofiler_core.preferences.get_default_image_directory()
      unicode_dir = "P125 � 144 Crible Chimioth�que HBEC"
      unicode_dir = tempfile.mkdtemp(prefix=unicode_dir)
      cellprofiler_core.preferences.set_default_image_directory(
          unicode_dir
      )
      assert (
          cellprofiler_core.preferences.config_read(
              cellprofiler_core.preferences.DEFAULT_IMAGE_DIRECTORY
          )
          == unicode_dir
      )
      assert (
          cellprofiler_core.preferences.get_default_image_directory()
          == unicode_dir
      )
      cellprofiler_core.preferences.set_default_image_directory(old)
  
file_path: CellProfiler/tests/core/preferences/test_preferences.py
imports: import tempfile
  import unittest
  import cellprofiler_core.preferences
label_desc: Use image node_id 3 for calling the TestPreferences obj's underlying member method code with example usage: obj.test_01_03_unicode_directory() without return types