code: def _parse_directory(root_dir: Path):
      for prompt_file in root_dir.glob("**/PROMPTS"):
          try:
              yield from _parse_prompts(prompt_file)
          except UnicodeDecodeError:
              pass
  
imports: import argparse
  import os
  from pathlib import Path
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_directory(root_dir) without return types