code: def set_debug_mode(enabled: bool) -> None:
      os.environ[DEBUG_ENV_VAR] = str(enabled)
      os.environ[GRPC_DEBUG_ENV_VAR] = "DEBUG"
  
      logger.info(
          "%s debug mode for current BentoML session",
          "Enabling" if enabled else "Disabling",
      )
  
imports: from __future__ import annotations
  import importlib.metadata
  import logging
  import os
  import re
  import typing
  from functools import lru_cache
  from ...exceptions import BentoMLConfigException
  from ...exceptions import BentoMLException
label_desc: Use image node_id 6 for calling a global function with example usage: set_debug_mode(enabled) without return types