code: def report_result(rule_path: Path, return_code: int, msg: str):
      """report the results of running a rule/check."""
      if return_code != 0:
          print_colored(
              f"{rule_path.relative_to(root)}: failed", file=sys.stderr
          )
          print(msg, file=sys.stderr)
      else:
          print(f"{rule_path.relative_to(root)}: passed")
  
file_path: determined/pre-commit/check.py
imports: import argparse
  import concurrent.futures
  import multiprocessing
  import os
  import subprocess
  import sys
  from pathlib import Path
  from typing import Dict, Iterable, List, Set, Tuple, Union
label_desc: Use image node_id 5 for calling a global function with example usage: report_result(rule_path, return_code, msg) without return types