class_docstr: Unit test class for testing scikit-learn converter.
docstr: Failure testing for bad conversion.
docstr_tok: ["Failure","testing","for","bad","conversion","."]
code: def test_conversion_bad_inputs(self):
      """
      Failure testing for bad conversion.
      """
      # Error on converting an untrained model
      with self.assertRaises(TypeError):
          model = OneHotEncoder()
          spec = converter.convert(model, "data", "out", "regressor")
  
imports: import itertools
  import tempfile
  import unittest
  import numpy
  import pytest
  import coremltools
  from coremltools._deps import _HAS_LIBSVM, _HAS_SKLEARN
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Function, Program
  from coremltools.models.pipeline import PipelineClassifier, PipelineRegressor
  from coremltools.models.utils import _is_macos
label_desc: Use image node_id 3 for calling the LinearRegressionPipeline obj's underlying member method code with example usage: obj.test_conversion_bad_inputs() without return types