code: def endpoint_name(sagemaker_session):
      endpoint_name = unique_name_from_base("clarify-xgb-integ")
      xgb_model_data = sagemaker_session.upload_data(
          path=os.path.join(XGBOOST_DATA_PATH, "xgb_model.tar.gz"),
          key_prefix="integ-test-data/xgboost/model",
      )
  
      xgb_image = image_uris.retrieve(
          "xgboost",
          sagemaker_session.boto_region_name,
          version="1",
          image_scope="inference",
      )
  
      with tests.integ.timeout.timeout_and_delete_endpoint_by_name(
          endpoint_name=endpoint_name,
          sagemaker_session=sagemaker_session,
          hours=2,
      ):
          xgb_model = Model(
              model_data=xgb_model_data,
              image_uri=xgb_image,
              name=endpoint_name,  # model name
              role=ROLE,
              sagemaker_session=sagemaker_session,
          )
          xgb_model.deploy(
              INSTANCE_COUNT,
              INSTANCE_TYPE,
              endpoint_name=endpoint_name,
              data_capture_config=DataCaptureConfig(
                  True, sagemaker_session=sagemaker_session
              ),
          )
          yield endpoint_name
  
imports: from __future__ import print_function, absolute_import
  from datetime import datetime, timedelta
  import json
  import numpy
  import os
  import pandas
  import pytest
  import tempfile
  import uuid
  import time
  import tests.integ
  import tests.integ.timeout
  from sagemaker import image_uris, utils
  from sagemaker.model_monitor import BiasAnalysisConfig, CronExpressionGenerator, DataCaptureConfig, EndpointInput, ExplainabilityAnalysisConfig, ModelBiasMonitor, ModelExplainabilityMonitor, BatchTransformInput, MonitoringDatasetFormat
  from sagemaker.s3 import S3Uploader
  from sagemaker.utils import unique_name_from_base
  from sagemaker.clarify import BiasConfig, DataConfig, ModelConfig, ModelPredictedLabelConfig, SHAPConfig
  from sagemaker.model import Model
  from tests.integ import DATA_DIR
  from tests.integ.retry import retries
label_desc: Use image node_id 1 for calling a global function with example usage: endpoint_name(sagemaker_session) without return types