Document the purpose, arguments, and return values for infer.py and extract_patches.py.
Document the purpose, arguments, and return values for infer.py and extract_patches.py.