code: def generate_all(
      tests: List[TestData],
      output_working_dir: Path,
      color_enum: Type[Union[Color, NoColor]] = Color,
      skip_missing_args: bool = False,
  ) -> None:
      os.chdir(output_working_dir.parent)
      for test in tests:
          generate_model_and_weights(
              test.id,
              test.command_line,
              output_working_dir,
              color_enum,
              skip_missing_args,
          )
  
      print(f"stored models in: {output_working_dir}")
  
file_path: vowpal_wabbit/test/run_tests_model_gen_and_load.py
imports: import argparse
  from genericpath import isdir, isfile
  from pathlib import Path
  import re
  import os
  import shutil
  import json
  from run_tests import convert_to_test_data, Color, NoColor, TestData
  import vowpalwabbit
  from typing import Any, Callable, Dict, List, Mapping, Optional, Set, Tuple, Type, Union, cast
label_desc: Use image node_id 6 for calling a global function with example usage: generate_all(tests, output_working_dir, color_enum, skip_missing_args) without return types