code: def _check_boosting(model):
      """Check if the estimator is a LGBModel or XGBModel.
  
      Returns
      -------
      Model type in string format.
      """
  
      estimator_type = str(type(model)).lower()
  
      boost_type = ("LGB" if "lightgbm" in estimator_type else "") + (
          "XGB" if "xgboost" in estimator_type else ""
      )
  
      if len(boost_type) != 3:
          raise ValueError("Pass a LGBModel or XGBModel.")
  
      return boost_type
  
file_path: shap-hypetune/shaphypetune/utils.py
imports: import random
  import numpy
  from itertools import product
  from shap import TreeExplainer
label_desc: Use image node_id 1 for calling a global function with example usage: _check_boosting(model) and returns: boost_type