code: def register_version(args: Namespace) -> None:
      model = model_by_name(args)
      if args.json:
          resp = api.post(
              args.master,
              "/api/v1/models/{}/versions".format(model.model_id),
              json={"checkpointUuid": args.uuid},
          )
  
          determined.cli.render.print_json(resp.json())
      else:
          model_version = model.register_version(args.uuid)
          render_model(model)
          print("\n")
          _render_model_versions([model_version])
  
file_path: determined/harness/determined/cli/model.py
imports: import json
  from argparse import Namespace
  from typing import Any, List
  import determined.cli.render
  from determined import cli
  from determined.cli import render
  from determined.common import api
  from determined.common.api import authentication
  from determined.common.declarative_argparse import Arg, Cmd
  from determined.experimental import Determined, Model, ModelSortBy, ModelVersion, OrderBy
label_desc: Use image node_id 9 for calling a global function with example usage: register_version(args) without return types