code: def main(argv):
      if len(argv) > 1:
          raise app.UsageError("Too many command-line arguments.")
  
      for descriptor in descriptors.ALL_MODULES:
          cls = descriptors.module_type(descriptor.create)
          file_name = descriptors.to_file_name(descriptor) + ".json"
          summary = checkpoint_utils.summarize(descriptor)
          with open(os.path.join(FLAGS.base_dir, file_name), "w") as fp:
              fp.write(json.dumps(summary, indent=2))
              fp.write("\n")
  
imports: import json
  import os
  from absl import app
  from absl import flags
  from haiku._src.integration import checkpoint_utils
  from haiku._src.integration import descriptors
label_desc: Use image node_id 1 for calling a global function with example usage: main(argv) without return types