code: def _get_subdirs(top_dir):
      top_dir = Path(top_dir)
      children = list(top_dir.glob("*"))
      return [child for child in children if child.is_dir()]
  
file_path: nilearn/nilearn/_utils/tests/test_cache_mixin.py
imports: import os
  import shutil
  from pathlib import Path
  import pytest
  from joblib import Memory
  import nilearn
  from nilearn._utils import CacheMixin, cache_mixin
label_desc: Use image node_id 1 for calling a global function with example usage: _get_subdirs(top_dir) and returns: unknown