code: def train_supervised(X_train, y_train, model=None):
      model = (
          model
          if model is not None
          else CatBoostClassifier(logging_level="Silent")
      )
      model.fit(X_train, y_train)
      return model
  
imports: from pyod.models.ecod import ECOD
  from pyod.models.xgbod import XGBOD
  from catboost import CatBoostClassifier
label_desc: Use image node_id 3 for calling a global function with example usage: train_supervised(X_train, y_train, model) and returns: model