code: def test_gen_pyf_no_overwrite(capfd, hello_world_f90, monkeypatch):
      """Ensures that the CLI refuses to overwrite signature files
      CLI :: -h without --overwrite-signature
      """
      ipath = Path(hello_world_f90)
      monkeypatch.setattr(
          sys, "argv", f"f2py -h faker.pyf {ipath}".split()
      )
  
      with util.switchdir(ipath.parent):
          Path("faker.pyf").write_text("Fake news", encoding="ascii")
          with pytest.raises(SystemExit):
              f2pycli()  # Refuse to overwrite
              _, err = capfd.readouterr()
              assert "Use --overwrite-signature to overwrite" in err
  
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 13 for calling a global function with example usage: test_gen_pyf_no_overwrite(capfd, hello_world_f90, monkeypatch) without return types