code: def to_json():
      config = get_all_options()
      for name, config_group in config.items():
          for group_name, options in config_group:
              for option in options:
                  option._type = str(
                      type(option._default_value).__name__
                  )
  
      import json
  
      with open("vw_options.json", "w") as f:
          f.write(
              json.dumps(config, indent=2, default=lambda x: x.__dict__)
          )
  
file_path: vowpal_wabbit/test/runtest_coverage.py
imports: from vowpalwabbit import pyvw
  import json
  import os
  from pathlib import Path
label_desc: Use image node_id 3 for calling a global function with example usage: to_json() without return types