code: def init_sme_to_pickle_test():
      """
      Init sme to pickle test
      TODO: Docstring
      Returns
      -------
      [type]
          [description]
      """
      current = Path(path.abspath(__file__)).parent.parent.parent
      pkl_file = path.join(current, "data/predictor.pkl")
      y_pred = pd.DataFrame(data=np.array([1, 2]), columns=["pred"])
      dataframe_x = pd.DataFrame([[1, 2, 4], [1, 2, 3]])
      clf = cb.CatBoostClassifier(n_estimators=1).fit(
          dataframe_x, y_pred
      )
      xpl = SmartExplainer(model=clf, features_dict={})
      xpl.compile(x=dataframe_x, y_pred=y_pred)
      predictor = xpl.to_smartpredictor()
      return pkl_file, predictor
  
imports: import unittest
  from shapash.explainer.smart_predictor import SmartPredictor
  from shapash import SmartExplainer
  from shapash.explainer.smart_state import SmartState
  from shapash.explainer.multi_decorator import MultiDecorator
  from shapash.backend import ShapBackend
  import os
  from os import path
  from pathlib import Path
  import pandas
  import numpy
  import catboost
  from catboost import Pool
  import category_encoders
  from unittest.mock import patch
  import types
  from sklearn.compose import ColumnTransformer
  import sklearn.preprocessing
  import shap
label_desc: Use image node_id 1 for calling a global function with example usage: init_sme_to_pickle_test() and returns: pkl_file,  predictor