code: def test_gh23598_warn(capfd, gh23598_warn, monkeypatch):
      foutl = get_io_paths(gh23598_warn, mname="test")
      ipath = foutl.f90inp
      monkeypatch.setattr(sys, "argv", f"f2py {ipath} -m test".split())
  
      with util.switchdir(ipath.parent):
          f2pycli()  # Generate files
          wrapper = foutl.wrap90.read_text()
          assert "intproductf2pywrap, intpr" not in wrapper
  
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 10 for calling a global function with example usage: test_gh23598_warn(capfd, gh23598_warn, monkeypatch) without return types