code: def check_version(parsed_args: argparse.Namespace) -> None:
      info = get_version(parsed_args.master)
  
      master_version = info["master"]["version"]
      client_version = info["client"]["version"]
      if not master_version:
          print(
              termcolor.colored(
                  "Master not found at {}. "
                  "Hint: Remember to set the DET_MASTER environment variable "
                  "to the correct Determined master IP and port or use the '-m' flag.".format(
                      parsed_args.master
                  ),
                  "yellow",
              ),
              file=sys.stderr,
          )
      elif version.Version(client_version) < version.Version(
          master_version
      ):
          print(
              termcolor.colored(
                  "CLI version {} is less than master version {}. "
                  "Consider upgrading the CLI.".format(
                      client_version, master_version
                  ),
                  "yellow",
              ),
              file=sys.stderr,
          )
      elif version.Version(client_version) > version.Version(
          master_version
      ):
          print(
              termcolor.colored(
                  "Master version {} is less than CLI version {}. "
                  "Consider upgrading the master.".format(
                      master_version, client_version
                  ),
                  "yellow",
              ),
              file=sys.stderr,
          )
  
file_path: determined/harness/determined/cli/version.py
imports: import argparse
  import sys
  from typing import Any, Dict, List
  import requests
  import termcolor
  from packaging import version
  import determined
  import determined.cli
  from determined.cli import render
  from determined.common import api
  from determined.common.declarative_argparse import Cmd
label_desc: Use image node_id 2 for calling a global function with example usage: check_version(parsed_args) without return types