code: def main():
      args = get_parser().parse_args()
      with open(args.inyaml, "r") as f:
          indict = yaml.load(f, Loader=yaml.Loader)
  
      if "token_list" not in indict:
          raise AttributeError("token_list is not found in config.")
  
      token_list = os.path.dirname(args.inyaml) + "/tokens.txt"
      with open(token_list, "w") as f:
          for token in indict["token_list"]:
              f.write(f"{token}\n")
  
imports: import argparse
  import os
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types