code: def has_global_value(name: str) -> bool:
      val = _get_global_val_intern(_to_actual_name(name))
  
      if isinstance(val, bool):
          return True
      if isinstance(val, str) and not val.strip():
          return False
      return bool(val)
  
file_path: lets-plot/python-package/lets_plot/_global_settings.py
imports: import os
  from typing import Any
  from ._version import __version__
label_desc: Use image node_id 7 for calling a global function with example usage: has_global_value(name) and returns: bool, True, False