code: def save_opt(opt):
      """save options to a json file"""
      if not os.path.exists(opt.out):
          os.makedirs(opt.out)
      json_path = os.path.join(opt.out, "params.json")
      with open(json_path, "w") as fp:
          json.dump(vars(opt), fp, indent=0, sort_keys=True)
  
file_path: ml-neuman/options/options.py
imports: import sys
  import os
  import json
  from utils import utils
label_desc: Use image node_id 4 for calling a global function with example usage: save_opt(opt) without return types