code: def register(subparser: _SubParsersAction[ArgumentParser]) -> None:
      sub = subparser.add_parser("migrate")
      sub.set_defaults(
          func=migrate, args_model=MigrateArgs, allow_unknown_args=True
      )
  
      sub = subparser.add_parser("grit")
      sub.set_defaults(
          func=grit, args_model=GritArgs, allow_unknown_args=True
      )
  
imports: from __future__ import annotations
  import os
  import sys
  import json
  import shutil
  import tarfile
  import platform
  import subprocess
  from typing import TYPE_CHECKING, List
  from pathlib import Path
  from argparse import ArgumentParser
  import httpx
  from .._errors import CLIError, SilentCLIError
  from .._models import BaseModel
label_desc: Use image node_id 1 for calling a global function with example usage: register(subparser) without return types