code: def is_debug(
      default: Optional[str] = None, env: Optional[Env] = None
  ) -> bool:
      return _env_as_bool(DEBUG, default=default, env=env)
  
imports: import json
  import os
  import sys
  from distutils.util import strtobool
  from pathlib import Path
  from typing import List, MutableMapping, Optional, Union
  import appdirs
label_desc: Use image node_id 3 for calling a global function with example usage: is_debug(default, env) and returns: _env_as_bool