code: def test_model_user_validation_model_type(self):
      (
          x_train,
          x_test,
          y_train,
          y_test,
          feature_names,
          classes,
      ) = create_iris_data()
      trained_model = self.create_sklearn_random_forest_classifier(
          x_train, y_train
      )
  
      assert (
          dice_ml.Model(
              model=trained_model,
              backend="sklearn",
              model_type="classifier",
          )
          is not None
      )
      assert (
          dice_ml.Model(
              model=trained_model,
              backend="sklearn",
              model_type="regressor",
          )
          is not None
      )
  
      with pytest.raises(UserConfigValidationException):
          dice_ml.Model(
              model=trained_model,
              backend="sklearn",
              model_type="random",
          )
  
file_path: DiCE/tests/test_model.py
imports: import pytest
  from rai_test_utils.datasets.tabular import create_iris_data
  from raiutils.exceptions import UserConfigValidationException
  from sklearn.ensemble import RandomForestClassifier
  import dice_ml
  from dice_ml.utils import helpers
label_desc: Use image node_id 2 for calling the TestModelUserValidations obj's underlying member method code with example usage: obj.test_model_user_validation_model_type() without return types