code: def xgb_user_settings(sagemaker_session, base_user_settings):
      base_user_settings["image"] = image_uris.retrieve(
          "xgboost", sagemaker_session._region_name, "1.7-1", "py38"
      )
      base_user_settings["model_path"] = os.path.join(
          XGB_RESOURCE_DIR, "tmp"
      )
      base_user_settings["content_type"] = "application/x-npy"
      base_user_settings["accept_type"] = "application/json"
      return base_user_settings
  
imports: from __future__ import absolute_import
  import os
  import shutil
  import pytest
  import pathlib
  import collections
  import platform
  from numpy import loadtxt
  from xgboost import XGBClassifier
  from sklearn.model_selection import train_test_split
  from sagemaker import serve, image_uris
  from tests.integ import DATA_DIR
  from tests.integ.timeout import timeout
label_desc: Use image node_id 2 for calling a global function with example usage: xgb_user_settings(sagemaker_session, base_user_settings) and returns: base_user_settings