code: def test_replace_print_to_info(caplog, monkeypatch):
      monkeypatch.setattr("lightning.app._logger", logging.getLogger())
  
      @convert_print_to_logger_info
      def fn_captured(value):
          print(value)
  
      with caplog.at_level(logging.INFO):
          fn_captured(1)
  
      assert caplog.messages == ["1"]
  
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 3 for calling a global function with example usage: test_replace_print_to_info(caplog, monkeypatch) without return types