code: def _make_mocked_network_config(key, host):
      network_config = Mock()
      network_config.name = key
      network_config.host = host
      return network_config
  
file_path: pytorch-lightning/tests/tests_app/launcher/test_running_flow.py
imports: import logging
  import os
  import signal
  import sys
  from unittest import mock
  from unittest.mock import MagicMock, Mock
  import pytest
  import requests
  from lightning.app.launcher import launcher, lightning_backend
  from lightning.app.utilities.app_helpers import convert_print_to_logger_info
  from lightning.app.utilities.enum import AppStage
  from lightning.app.utilities.exceptions import ExitAppException
label_desc: Use image node_id 1 for calling a global function with example usage: _make_mocked_network_config(key, host) and returns: network_config