code: def main():
      args = get_parser().parse_args()
      with open(args.inyaml, "r") as f:
          indict = yaml.load(f, Loader=yaml.Loader)
  
      try:
          for attr in args.attr.split("."):
              if attr.isdigit():
                  attr = int(attr)
              indict = indict[attr]
          print(indict)
      except KeyError:
          # print nothing
          # sys.exit(1)
          pass
  
imports: import argparse
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types