code: def _create_json_frontend_context() -> FrontendContext:
      """
      Configures Lets-Plot JSON output.
  
      Such context requires a Lets-Plot JSON interpreter plugged in to the frontend env (like PyCharm)
      """
  
      if _is_Intellij_Python_Lets_Plot_Plugin():
          return IntellijPythonJsonContext()
  
      # ToDo: GenericJsonFrontendContext
      raise RuntimeError("Couldn't detect Intellij Python environment")
  
imports: import os
  from ._frontend_ctx import FrontendContext
  from ._intellij_python_json_ctx import IntellijPythonJsonContext
label_desc: Use image node_id 1 for calling a global function with example usage: _create_json_frontend_context() and returns: IntellijPythonJsonContext