code: def try_get_workspace_or_none(
      cli: str,
      quiet: bool,
      color_enum: Type[Union[Color, NoColor]] = Color,
      skip_missing_args: bool = False,
  ):
      try:
          vw = vowpalwabbit.Workspace(cli, quiet=quiet)
          return vw
      except RuntimeError as e:
          if skip_missing_args:
              if "unrecognised option" in str(e):
                  print(
                      f"{color_enum.LIGHT_PURPLE}Skipping this test as there are new cli arguments present{color_enum.ENDC}"
                  )
                  return None
          raise e
  
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 2 for calling a global function with example usage: try_get_workspace_or_none(cli, quiet, color_enum, skip_missing_args) and returns: vw, None