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(self, data, trained_dict_vectorizer):
      X = trained_dict_vectorizer.transform(data)
  
      m = sklearn.convert(
          trained_dict_vectorizer,
          input_features="features",
          output_feature_names="output",
      )
  
      if _is_macos() and _macos_version() >= (10, 13):
          ret = evaluate_transformer(
              m,
              [{"features": row} for row in data],
              [{"output": x_r} for x_r in X],
              True,
          )
          assert ret["num_errors"] == 0
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/test/sklearn_tests/test_dict_vectorizer.py
imports: import unittest
  from coremltools._deps import _HAS_SKLEARN
  from copy import copy
  import numpy
  from coremltools.models.utils import evaluate_transformer
  from coremltools.models.utils import evaluate_classifier
  from coremltools.models.utils import _macos_version, _is_macos
label_desc: Use image node_id 1 for calling the DictVectorizerScikitTest obj's underlying member method code with example usage: obj._test_conversion(data, trained_dict_vectorizer) without return types