code: def find_kernel_specs() -> dict[str, str]:
      """Returns a dict mapping kernel names to resource directories."""
      return KernelSpecManager().find_kernel_specs()
  
imports: from __future__ import annotations
  import json
  import os
  import re
  import shutil
  import typing
  import warnings
  from jupyter_core.paths import SYSTEM_JUPYTER_PATH, jupyter_data_dir, jupyter_path
  from traitlets import Bool, CaselessStrEnum, Dict, HasTraits, List, Set, Type, Unicode, observe
  from traitlets.config import LoggingConfigurable
  from .provisioning import KernelProvisionerFactory
label_desc: Use image node_id 4 for calling a global function with example usage: find_kernel_specs() and returns: KernelSpecManager