code: def save_args(args: argparse.Namespace, fname: str):
      with open(fname, "w") as out:
          yaml.safe_dump(args.__dict__, out, default_flow_style=False)
  
imports: import argparse
  import os
  import sys
  import types
  from typing import Any, Callable, Dict, List, Tuple, Optional
  import yaml
  from sockeye.utils import smart_open
  from .None import constants
label_desc: Use image node_id 1 for calling a global function with example usage: save_args(args, fname) without return types