class_docstr: Unit test class for testing xgboost converter.
class_docstr_tok: ["Unit","test","class","for","testing","xgboost","converter","."]
code: def test_conversion_bad_inputs(self):
      # Error on converting an untrained model
      with self.assertRaises(Exception):
          model = xgboost.XGBClassifier()
          spec = xgb_converter.convert(
              model, "data", "out", mode="classifier"
          )
  
      # Check the expected class during conversion.
      with self.assertRaises(Exception):
          model = xgboost.XGBRegressor()
          spec = xgb_converter.convert(
              model, "data", "out", mode="classifier"
          )
  
imports: import json
  import tempfile
  import unittest
  from coremltools._deps import _HAS_SKLEARN, _HAS_XGBOOST
  from coremltools.converters import sklearn
  from coremltools.models.utils import _macos_version
label_desc: Use image node_id 3 for calling the GradientBoostingBinaryClassifierXGboostTest obj's underlying member method code with example usage: obj.test_conversion_bad_inputs() without return types