code: def generate_registry_args(parser, registry, default=None):
      """Walks through the given registry and generates arguments for each of the available options"""
      parser.add_argument(
          f"--{registry.flag_registry_name}",
          help=f"{registry.flag_registry_name.title()} to compile the model with",
          required=False,
          default=default,
      )
      names = registry.list_registered()
  
      for name in names:
          _generate_registry_option_args(parser, registry, name)
  
imports: from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 2 for calling a global function with example usage: generate_registry_args(parser, registry, default) without return types