code: def _find_compatible_vs(
      split_vs: List[int], supported_vs: str
  ) -> Tuple[str, str, str]:
      """Placeholder docstring"""
      earliest_upcast_version = None
      latest_downcast_version = None
      found_version = None
  
      split_supported_vs = supported_vs.split(".")
  
      # if same major version
      if split_vs[0] == int(split_supported_vs[0]):
          # if no minor or mini version
          if len(split_supported_vs) == 1:
              if len(split_vs) == 1:
                  return (None, None, supported_vs)
              return (None, None, None)
  
          # the minor and mini could be joined as such 1.2-1
          split_supported_minor = split_supported_vs[1].split("-")
          converted_supported_minor = int(split_supported_minor[0])
  
          # if same minor version
          if split_vs[1] == converted_supported_minor:
              mini = (
                  int(split_supported_vs[2])
                  if len(split_supported_minor) == 1
                  else int(split_supported_minor[1])
              )
              if split_vs[2] == mini:
                  found_version = supported_vs
              elif split_vs[2] < mini:
                  earliest_upcast_version = supported_vs
              else:
                  latest_downcast_version = supported_vs
          elif split_vs[1] < converted_supported_minor:
              earliest_upcast_version = supported_vs
  
      return (
          earliest_upcast_version,
          latest_downcast_version,
          found_version,
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/detector/image_detector.py
imports: from __future__ import absolute_import
  from typing import Tuple, List
  import platform
  import re
  import logging
  from packaging import version
  from sagemaker import image_uris
label_desc: Use image node_id 5 for calling a global function with example usage: _find_compatible_vs(split_vs, supported_vs) and returns: earliest_upcast_version,  latest_downcast_version,  found_version, None,  None,  None, None,  None,  supported_vs