code: def test_interactive_compatible(start_method):
      launcher = _MultiProcessingLauncher(
          strategy=Mock(), start_method=start_method
      )
      assert launcher.is_interactive_compatible == (
          start_method == "fork"
      )
  
file_path: pytorch-lightning/tests/tests_fabric/strategies/launchers/test_multiprocessing.py
imports: from unittest import mock
  from unittest.mock import ANY, Mock
  import pytest
  import torch
  from lightning.fabric.strategies.launchers.multiprocessing import _GlobalStateSnapshot, _MultiProcessingLauncher
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_interactive_compatible(start_method) without return types