code: def skip_if_incompatible(tensorflow_training_version, request):
      if version.parse(tensorflow_training_version) >= version.parse(
          "2.12"
      ) or version.parse(tensorflow_training_version) < version.parse(
          "2.9"
      ):
          pytest.skip(
              "Training Compiler only supports TF >= 2.9 and < 2.12"
          )
  
imports: from __future__ import absolute_import
  import logging
  import json
  import os
  from packaging import version
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker import image_uris
  from sagemaker.session_settings import SessionSettings
  from sagemaker.tensorflow import TensorFlow, TrainingCompilerConfig
  from tests.unit.sagemaker.training_compiler import EC2_GPU_INSTANCE_CLASSES
label_desc: Use image node_id 1 for calling a global function with example usage: skip_if_incompatible(tensorflow_training_version, request) without return types