code: def equal_with_bash(prefix, ffc, fc, out=None):
      res = ffc(prefix)
      res_bash = set(fc(prefix))
      retval = set(res) == res_bash
      if out:
          out.write(f"equal_with_bash({prefix}) {retval} {res}\n")
          if not retval:
              out.write(" python - bash: %s\n" % (set(res) - res_bash))
              out.write(" bash - python: %s\n" % (res_bash - set(res)))
      return retval
  
file_path: pytest/testing/test_argcomplete.py
imports: import subprocess
  import sys
  from pathlib import Path
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
label_desc: Use image node_id 1 for calling a global function with example usage: equal_with_bash(prefix, ffc, fc, out) and returns: retval