code: def test_execute_app_commands_runs_single_command(capfd):
      cl = CommandLines(
          file="foo.txt",
          commands=['echo "foo"'],
          line_numbers=[1],
      )
      _execute_app_commands(cl)
      out, _ = capfd.readouterr()
      assert "foo" in out
  
file_path: pytorch-lightning/tests/tests_app/utilities/test_app_commands.py
imports: import os
  import sys
  import pytest
  from lightning.app.utilities.app_commands import CommandLines, _execute_app_commands, _extract_commands_from_file
  from lightning.app.utilities.exceptions import MisconfigurationException
label_desc: Use image node_id 2 for calling a global function with example usage: test_execute_app_commands_runs_single_command(capfd) without return types