code: def test_XGBClassifier(self):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      models = ["XGBClassifier"]
      for model in models:
          mod1 = getattr(df.xgboost, model)()
          mod2 = getattr(xgb, model)()
  
          df.fit(mod1)
          mod2.fit(iris.data, iris.target)
  
          result = df.predict(mod1)
          expected = mod2.predict(iris.data)
  
          self.assertIsInstance(result, pdml.ModelSeries)
          self.assert_numpy_array_almost_equal(result.values, expected)
  
file_path: pandas-ml/pandas_ml/xgboost/test/test_base.py
imports: import matplotlib
  import numpy
  import pandas
  import pandas_ml
  import pandas_ml.util.testing
  import sklearn.datasets
  import xgboost
label_desc: Use image node_id 2 for calling the TestXGBoost obj's underlying member method code with example usage: obj.test_XGBClassifier() without return types