code: def _compare_model_version_tuples(  # pylint: disable=too-many-return-statements
      model_version_1: Optional[Tuple[str, str]] = None,
      model_version_2: Optional[Tuple[str, str]] = None,
  ) -> int:
      """Performs comparison of sdk specs paths, in order to sort them.
  
      Args:
          model_version_1 (Tuple[str, str]): The first model ID and version tuple to compare.
          model_version_2 (Tuple[str, str]): The second model ID and version tuple to compare.
      """
      if model_version_1 is None or model_version_2 is None:
          if model_version_2 is not None:
              return -1
          if model_version_1 is not None:
              return 1
          return 0
  
      model_id_1, version_1 = model_version_1
  
      model_id_2, version_2 = model_version_2
  
      if model_id_1 < model_id_2:
          return -1
  
      if model_id_2 < model_id_1:
          return 1
  
      if Version(version_1) < Version(version_2):
          return 1
  
      if Version(version_2) < Version(version_1):
          return -1
  
      return 0
  
imports: from __future__ import absolute_import
  import copy
  from concurrent.futures import ThreadPoolExecutor, as_completed
  from functools import cmp_to_key
  import json
  from typing import Any, Generator, List, Optional, Tuple, Union, Set, Dict
  from packaging.version import Version
  from sagemaker.jumpstart import accessors
  from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION, JUMPSTART_DEFAULT_REGION_NAME
  from sagemaker.jumpstart.enums import JumpStartScriptScope
  from sagemaker.jumpstart.filters import SPECIAL_SUPPORTED_FILTER_KEYS, BooleanValues, Identity, SpecialSupportedFilterKeys
  from sagemaker.jumpstart.filters import Constant, ModelFilter, Operator, evaluate_filter_expression
  from sagemaker.jumpstart.types import JumpStartModelHeader, JumpStartModelSpecs
  from sagemaker.jumpstart.utils import get_jumpstart_content_bucket, get_sagemaker_version, verify_model_region_and_return_specs
  from sagemaker.session import Session
label_desc: Use image node_id 1 for calling a global function with example usage: _compare_model_version_tuples(model_version_1, model_version_2) and returns: int, int, unknown, int, int, unknown, unknown, int