code: def load_args(fname: str) -> argparse.Namespace:
      with open(fname, "r") as inp:
          return argparse.Namespace(**yaml.safe_load(inp))
  
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 2 for calling a global function with example usage: load_args(fname) and returns: argparse