code: def get_rule_name(code: str) -> str:
      out = subprocess.check_output(
          [*RUFF, "rule", "--format", "json", code], text=True
      ).strip()
      return json.loads(out)["name"]
  
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 1 for calling a global function with example usage: get_rule_name(code) and returns: json