code: def test_happy_xgb_local_container(
      xgb_train_test_data, xgb_user_settings
  ):
      xgb_user_settings["mode"] = serve.Mode.LOCAL_CONTAINER
  
      with timeout(minutes=10):
          try:
              xgb_happy_infer(
                  xgb_happy_fns(
                      xgb_train_test_data.x_train,
                      xgb_train_test_data.y_train,
                      xgb_user_settings,
                  ),
                  xgb_user_settings["model_path"],
                  xgb_train_test_data.x_test,
              )
          except Exception as e:
              assert (
                  False
              ), f"{e} was thrown when running xgb local container test"
  
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 7 for calling a global function with example usage: test_happy_xgb_local_container(xgb_train_test_data, xgb_user_settings) without return types