class_docstr: Unit test class for testing scikit-learn converter.
class_docstr_tok: ["Unit","test","class","for","testing","scikit-learn","converter","."]
code: def test_conversion_bad_inputs(self):
      from sklearn.preprocessing import OneHotEncoder
  
      # Error on converting an untrained model
      with self.assertRaises(TypeError):
          model = SVC()
          spec = scikit_converter.convert(model, "data", "out")
  
      # Check the expected class during conversion
      with self.assertRaises(TypeError):
          model = OneHotEncoder()
          spec = scikit_converter.convert(model, "data", "out")
  
imports: import unittest
  import tempfile
  import os
  import pandas
  import random
  import pytest
  import numpy
  from coremltools.models.utils import evaluate_classifier, evaluate_classifier_with_probabilities, _macos_version, _is_macos
  from coremltools._deps import _HAS_LIBSVM, _HAS_SKLEARN
label_desc: Use image node_id 10 for calling the SvcScikitTest obj's underlying member method code with example usage: obj.test_conversion_bad_inputs() without return types