code: def _set_frontend_context() -> None:
      global COMPONENT_CONTEXT
      COMPONENT_CONTEXT = ComponentContext.FRONTEND
  
imports: import os
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, Any, Dict, Generator, Optional
  from deepdiff.helper import NotPresent
  from lightning_utilities.core.apply_func import apply_to_collection
  from lightning.app.utilities.app_helpers import is_overridden
  from lightning.app.utilities.enum import ComponentContext
  from lightning.app.utilities.packaging.cloud_compute import CloudCompute
  from lightning.app.utilities.tree import breadth_first
label_desc: Use image node_id 8 for calling a global function with example usage: _set_frontend_context() without return types