code: def find_rules(paths: List[Path]):
      resolved_paths: Set[Path] = set()
      for dirty_path in paths:
          for rule_path in rules.keys():
              if is_child(dirty_path, rule_path):
                  resolved_paths.add(rule_path)
      return resolved_paths
  
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 4 for calling a global function with example usage: find_rules(paths) and returns: resolved_paths