code: def gen_error_codes(args):
      """Generate error code table for error reasons"""
      yield "static struct py_ssl_error_code error_codes[] = {"
      for reason, libname, errname, num in args.reasons:
          yield f"  #ifdef {reason}"
          yield f'    {{"{errname}", ERR_LIB_{libname}, {reason}}},'
          yield "  #else"
          yield f'    {{"{errname}", {args.lib2errnum[libname]}, {num}}},'
          yield "  #endif"
  
      yield "    { NULL }"
      yield "};"
      yield ""
  
file_path: cpython/Tools/ssl/make_ssl_data.py
imports: import argparse
  import datetime
  import operator
  import os
  import re
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: gen_error_codes(args) without return types