code: def main():
      args = parse_args()
  
      print("#pragma once\n\n")
  
      gr = {}
      for name, size in args.enum or []:
          assert name not in gr
          gr[name] = int(size)
      if args.range:
          step = max(int(math.sqrt(args.range)), 1)
          for s in range(args.range, -1, -step):
              gr["EDenseEnum%04d" % s] = s
  
      if args.namespace:
          print(f"namespace {args.namespace} {{")
  
      for name, size in sorted(gr.items(), key=lambda kv: -kv[1]):
          gen_enum(name, size)
  
      if args.namespace:
          print(f"}} // namespace {args.namespace}")
  
      return 0
  
imports: from argparse import ArgumentParser
  import random
  import sys
  import math
label_desc: Use image node_id 3 for calling a global function with example usage: main() and returns: int