code: def handle_agent_up(args: argparse.Namespace) -> None:
      cluster_utils.agent_up(
          master_host=args.master_host,
          master_port=args.master_port,
          agent_config_path=args.agent_config_path,
          gpu=args.gpu,
          agent_name=args.agent_name,
          agent_resource_pool=args.agent_resource_pool,
          image_repo_prefix=args.image_repo_prefix,
          version=args.det_version,
          labels=None,
          autorestart=(not args.no_autorestart),
          cluster_name=args.cluster_name,
      )
  
file_path: determined/harness/determined/deploy/local/cli.py
imports: import argparse
  import sys
  from pathlib import Path
  from typing import Callable, Dict
  import determined
  from determined.common.declarative_argparse import Arg, BoolOptArg, Cmd, Group
  from determined.deploy.local import cluster_utils
  from .preflight import check_docker_install
label_desc: Use image node_id 6 for calling a global function with example usage: handle_agent_up(args) without return types