code: def test_is_hidden_win32_pypy():
      import ctypes  # noqa: F401
  
      with tempfile.TemporaryDirectory() as root:
          subdir1 = os.path.join(root, "subdir")
          os.makedirs(subdir1)
          assert not is_hidden(subdir1, root)
          subprocess.check_call(["attrib", "+h", subdir1])
  
          with warnings.catch_warnings(record=True) as w:
              # Cause all warnings to always be triggered.
              warnings.simplefilter("always")
              # Trigger a warning.
              assert not is_hidden(subdir1, root)
              # Verify the warning was triggered
              assert len(w) == 1
              assert issubclass(w[-1].category, UserWarning)
              assert (
                  "hidden files are not detectable on this system"
                  in str(w[-1].message)
              )
  
          with warnings.catch_warnings(record=True) as w:
              # Cause all warnings to always be triggered.
              warnings.simplefilter("always")
              # Trigger a warning.
              assert not is_file_hidden(subdir1)
              # Verify the warning was triggered
              assert len(w) == 1
              assert issubclass(w[-1].category, UserWarning)
              assert (
                  "hidden files are not detectable on this system"
                  in str(w[-1].message)
              )
  
imports: from __future__ import annotations
  import os
  import re
  import shutil
  import site
  import stat
  import subprocess
  import sys
  import tempfile
  import warnings
  from unittest.mock import patch
  import pytest
  from platformdirs import __version_info__
  from jupyter_core import paths
  from jupyter_core.paths import UF_HIDDEN, _win32_restrict_file_to_user_ctypes, exists, is_file_hidden, is_hidden, issue_insecure_write_warning, jupyter_config_dir, jupyter_config_path, jupyter_data_dir, jupyter_path, jupyter_runtime_dir, prefer_environment_over_user, secure_write
label_desc: Use image node_id 41 for calling a global function with example usage: test_is_hidden_win32_pypy() without return types