code: def test_compile_validates_framework_version(
      sagemaker_session,
      target,
      framework,
      fx_version,
      expected_fx_version,
  ):
      model = _create_model(sagemaker_session)
      config = model._compilation_job_config(
          target,
          {"data": [1, 3, 1024, 1024]},
          "s3://output",
          "role",
          900,
          "compile-model",
          framework,
          None,
          framework_version=fx_version,
      )
  
      assert (
          config["input_model_config"].get("FrameworkVersion", None)
          == expected_fx_version
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 22 for calling a global function with example usage: test_compile_validates_framework_version(sagemaker_session, target, framework, fx_version, expected_fx_version) without return types