code: def _check_model(model):
      if not isinstance(model, CatBoost):
          raise CatBoostError("Model should be CatBoost")
  
file_path: catboost/catboost/python-package/catboost/monoforest.py
imports: import math
  from .None import _catboost
  from .core import CatBoost, CatBoostError
  from .utils import _import_matplotlib
label_desc: Use image node_id 1 for calling a global function with example usage: _check_model(model) without return types