code: def test_kill(_):
      launcher = _SubprocessScriptLauncher(Mock(), 1, 1)
      proc0 = Mock(autospec=subprocess.Popen)
      proc1 = Mock(autospec=subprocess.Popen)
      launcher.procs = [proc0, proc1]
  
      launcher.kill(15)
      proc0.send_signal.assert_called_once_with(15)
      proc1.send_signal.assert_called_once_with(15)
  
file_path: pytorch-lightning/tests/tests_pytorch/strategies/launchers/test_subprocess_script.py
imports: import subprocess
  import sys
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from lightning.pytorch.strategies.launchers.subprocess_script import _SubprocessScriptLauncher
  from lightning_utilities.core.imports import RequirementCache
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 2 for calling a global function with example usage: test_kill(_) without return types