code: def run_ruff(files, fix):
      if not files:
          return 0, ""
      args = ["--fix", "--exit-non-zero-on-fix"] if fix else []
      res = subprocess.run(
          ["ruff", f"--config={CONFIG}"] + args + list(files),
          stdout=subprocess.PIPE,
          encoding="utf-8",
      )
      return res.returncode, res.stdout
  
file_path: scipy/tools/lint.py
imports: import os
  import sys
  import subprocess
  from argparse import ArgumentParser
label_desc: Use image node_id 4 for calling a global function with example usage: run_ruff(files, fix) and returns: res,  res, int,  str