code: def _use_isolated_frame() -> bool:
      # check environment
      if has_global_value(HTML_ISOLATED_FRAME):
          return get_global_bool(HTML_ISOLATED_FRAME)
  
      return _detect_isolated_frame()
  
file_path: lets-plot/python-package/lets_plot/frontend_context/_html_contexts.py
imports: import os
  from ._frontend_ctx import FrontendContext
  from ._jupyter_notebook_ctx import JupyterNotebookContext
  from ._static_html_page_ctx import StaticHtmlPageContext
  from .._global_settings import has_global_value, get_global_bool, HTML_ISOLATED_FRAME
label_desc: Use image node_id 2 for calling a global function with example usage: _use_isolated_frame() and returns: _detect_isolated_frame, get_global_bool