code: def main():
      if "GITHUB_ACTIONS" in os.environ:
          with subprocess.Popen(
              [
                  *RUFF,
                  *sys.argv[1:],
              ],
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
              text=True,
          ) as prc:
              stdout, stderr = prc.communicate()
              is_maintainer = (
                  os.environ.get("IS_MAINTAINER", "false").lower()
                  == "true"
              )
              sys.stdout.write(transform(stdout, is_maintainer))
              sys.stderr.write(stderr)
              sys.exit(prc.returncode)
      else:
          with subprocess.Popen(
              [
                  *RUFF,
                  "--fix",
                  "--exit-non-zero-on-fix",
                  *sys.argv[1:],
              ]
          ) as prc:
              prc.communicate()
              sys.exit(prc.returncode)
  
file_path: mlflow/dev/ruff.py
imports: import functools
  import json
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types