code: def register_main(subparser) -> "None":
      parser = subparser.add_parser(
          "create-resources",
          help="Create benchmark input resources.",
          description="Create benchmark input resources.",
      )
  
      parser.add_argument(
          "--data-dir",
          "-d",
          type=str,
          required=True,
          help="Data directory.",
      )
      parser.add_argument(
          "--group",
          type=str,
          required=False,
          help="Resource group to download.",
      )
  
      parser.set_defaults(main=main)
  
imports: from .None import init_logging
  from .run.resources import all_resources
  from .run.utils import ensure_resources, ensure_single_resource
label_desc: Use image node_id 2 for calling a global function with example usage: register_main(subparser) without return types