code: def xgb_happy_infer(fns, model_path, x_test):
      # prepare
      fns.prepare_fn(model_path)
  
      # load
      model = fns.load_fn(model_path)
  
      # invoke
      response = fns.predict_fn(model, x_test)
  
      assert response
      assert isinstance(response, list)
      assert isinstance(response[0], int)
  
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 5 for calling a global function with example usage: xgb_happy_infer(fns, model_path, x_test) without return types