docstr: Returns one of the types of experiments in PyCaret
docstr_tok: ["Returns","one","of","the","types","of","experiments","in","PyCaret"]
code: def _get_experiment(self, model_type):
      """Returns one of the types of experiments in PyCaret"""
      if model_type == "classification":
          return ClassificationExperiment()
      elif model_type == "regression":
          return RegressionExperiment()
      elif model_type == "time_series":
          return TSForecastingExperiment()
      elif model_type == "clustering":
          return ClusteringExperiment()
      elif model_type == "anomaly":
          return AnomalyExperiment()
      else:
          raise Exception(f"Unrecognized model type '{model_type}'")
  
file_path: mindsdb/mindsdb/integrations/handlers/pycaret_handler/pycaret_handler.py
imports: from typing import Optional, Dict
  import os
  import pandas
  from mindsdb.integrations.libs.base import BaseMLEngine
  from pycaret.classification import ClassificationExperiment
  from pycaret.regression import RegressionExperiment
  from pycaret.time_series import TSForecastingExperiment
  from pycaret.clustering import ClusteringExperiment
  from pycaret.anomaly import AnomalyExperiment
label_desc: Use image node_id 4 for calling the PyCaretHandler obj's underlying member method code with example usage: obj._get_experiment(model_type) and returns: ClassificationExperiment, RegressionExperiment, TSForecastingExperiment, ClusteringExperiment, AnomalyExperiment