code: def test_file_processing_switch(
      capfd, hello_world_f90, retreal_f77, monkeypatch
  ):
      """Tests that it is possible to return to file processing mode
      CLI :: :
      BUG: numpy-gh #20520
      """
      foutl = get_io_paths(retreal_f77, mname="test")
      ipath = foutl.finp
      toskip = "t0 t4 t8 sd s8 s4"
      ipath2 = Path(hello_world_f90)
      tokeep = "td s0 hi"  # hi is in ipath2
      mname = "blah"
      monkeypatch.setattr(
          sys,
          "argv",
          f"f2py {ipath} -m {mname} only: {tokeep} : {ipath2}".split(),
      )
  
      with util.switchdir(ipath.parent):
          f2pycli()
          out, err = capfd.readouterr()
          for skey in toskip.split():
              assert (
                  f'buildmodule: Could not find the body of interfaced routine "{skey}". Skipping.'
                  in err
              )
          for rkey in tokeep.split():
              assert f'Constructing wrapper function "{rkey}"' in out
  
imports: import textwrap, re, sys, subprocess, shlex
  from pathlib import Path
  from collections import namedtuple
  import platform
  import pytest
  from .None import util
  from numpy.f2py.f2py2e import main
label_desc: Use image node_id 18 for calling a global function with example usage: test_file_processing_switch(capfd, hello_world_f90, retreal_f77, monkeypatch) without return types