code: def test_model_custom_serialization(
      sagemaker_session, xgboost_framework_version
  ):
      model = XGBoostModel(
          "s3://some/data.tar.gz",
          role=ROLE,
          framework_version=xgboost_framework_version,
          entry_point=SCRIPT_PATH,
          sagemaker_session=sagemaker_session,
      )
      custom_serializer = Mock()
      custom_deserializer = Mock()
      predictor = model.deploy(
          1,
          CPU,
          serializer=custom_serializer,
          deserializer=custom_deserializer,
      )
      assert isinstance(predictor, XGBoostPredictor)
      assert predictor.serializer is custom_serializer
      assert predictor.deserializer is custom_deserializer
  
imports: from __future__ import absolute_import
  import logging
  import json
  import os
  import pytest
  from mock import Mock
  from mock import patch
  from packaging.version import Version
  from sagemaker.fw_utils import UploadedCode
  from sagemaker.session_settings import SessionSettings
  from sagemaker.xgboost import XGBoost, XGBoostModel, XGBoostPredictor
label_desc: Use image node_id 14 for calling a global function with example usage: test_model_custom_serialization(sagemaker_session, xgboost_framework_version) without return types