code: def main():
      pcs.setup_script_registry()
  
      first = []
      second = []
      for key, registration in sorted(pcs.SCRIPT_REGISTRY.items()):
          if not registration.hidden:
              first.append((key, registration))
          else:
              second.append((key, registration))
  
      with open("cli_usage.inc", "w") as fout:
          for i, (key, registration) in enumerate(first):
              if i != 0:
                  fout.write("\n----------\n")
              render_script(fout, key, registration)
  
      with open("cli_advanced.inc", "w") as fout:
          for i, (key, registration) in enumerate(second):
              if i != 0:
                  fout.write("\n----------\n")
              render_script(fout, key, registration)
  
imports: import importlib
  import inspect
  import argparse
  import parlai.core.script
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types