code: def check_deepspeed_version(multi_machine: bool) -> None:
      if not multi_machine:
          return
      # Upstream deepspeed added an ssh check from 0.6.1 onwards that does not have the
      # StrictHostKeyChecking=no arg and fails with our agents.  A PR adding a no_ssh_check arg
      # to bypass this should land for versions 0.6.5 and onwards.
      if deepspeed_version <= version.parse("0.6.0"):
          return
      if deepspeed_version > version.parse("0.6.4"):
          return
      raise ValueError(
          "This launcher is incompatible with deepspeed versions 0.6.1 to 0.6.4 due to an ssh check "
          "in the upstream launcher that fails with our setup.  We perform our own ssh check by "
          "default and can bypass this ssh check for deepspeed versions >= 0.6.5."
      )
  
imports: import argparse
  import logging
  import os
  import re
  import shlex
  import subprocess
  import sys
  import time
  from typing import Dict, List, Mapping, Optional
  import deepspeed
  import filelock
  from deepspeed.launcher.runner import DEEPSPEED_ENVIRONMENT_NAME
  from packaging import version
  import determined
  import determined.common
  from determined import constants, util
  from determined.common import api
  from determined.common.api import certs
label_desc: Use image node_id 12 for calling a global function with example usage: check_deepspeed_version(multi_machine) without return types