code: def save_args(args, verbose=True):
      """Dumps RunConfiguration to a json file.
  
      Args:
          args (RunConfiguration): configuration carrying command line args specifying run params.
          verbose (bool): If True, print the arg object that was written to file.
  
      """
      formatted_args = json.dumps(vars(args), indent=2)
      with open(os.path.join(args.output_dir, "args.json"), "w") as f:
          f.write(formatted_args)
      if verbose:
          print(formatted_args)
  
imports: import json
  import numpy
  import os
  import random
  import time
  import torch
  from dataclasses import dataclass
  from typing import Any
  import jiant.utils.python.io
  import jiant.utils.zlog
label_desc: Use image node_id 8 for calling a global function with example usage: save_args(args, verbose) without return types