code: def _mock_settings_env_vars():
      with mock.patch.dict(
          os.environ,
          {
              "LIGHTNING_FLOW_NAME": "root.lit_flow",
              "LIGHTNING_RENDER_ADDRESS": "localhost",
              "LIGHTNING_RENDER_MODULE_FILE": __file__,
              "LIGHTNING_RENDER_PORT": "61896",
          },
      ):
          yield
  
file_path: pytorch-lightning/tests/tests_app/frontend/panel/test_panel_serve_render_fn.py
imports: import inspect
  import os
  from unittest import mock
  import pytest
  from lightning.app.frontend.panel.app_state_watcher import AppStateWatcher
  from lightning.app.frontend.panel.panel_serve_render_fn import _get_render_fn, _get_render_fn_from_environment
  from lightning_utilities.core.imports import RequirementCache
label_desc: Use image node_id 1 for calling a global function with example usage: _mock_settings_env_vars() without return types