code: def test_debugcapi(capfd, hello_world_f90, monkeypatch):
      """Ensures that debugging wrappers are written
  
      CLI :: --debug-capi
      """
      ipath = Path(hello_world_f90)
      mname = "blah"
      monkeypatch.setattr(
          sys, "argv", f"f2py -m {mname} {ipath} --debug-capi".split()
      )
  
      with util.switchdir(ipath.parent):
          f2pycli()
          with Path(f"./{mname}module.c").open() as ocmod:
              assert r"#define DEBUGCFUNCS" in ocmod.read()
  
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 30 for calling a global function with example usage: test_debugcapi(capfd, hello_world_f90, monkeypatch) without return types