code: def setup_method(self, method):
      # super().setup_method(method)
      self.model = XGBoost(
          config={
              "n_estimators": 5,
              "max_depth": 2,
              "tree_method": "hist",
          }
      )
      feature_cols = ["f", "f2"]
      target_col = "t"
      train_df = pd.DataFrame(
          {
              "f": np.random.randn(20),
              "f2": np.random.randn(20),
              "t": np.random.randint(20),
          }
      )
      val_df = pd.DataFrame(
          {
              "f": np.random.randn(5),
              "f2": np.random.randn(5),
              "t": np.random.randint(5),
          }
      )
  
      self.x, self.y = train_df[feature_cols], train_df[[target_col]]
      self.val_x, self.val_y = (
          val_df[feature_cols],
          val_df[[target_col]],
      )
  
file_path: BigDL/python/orca/test/bigdl/orca/automl/xgboost/test_xgbregressor.py
imports: from bigdl.orca.test_zoo_utils import ZooTestCase
  import numpy
  import pandas
  import os
  from numpy.testing import assert_array_almost_equal
  from bigdl.orca.automl.xgboost.XGBoost import XGBoost, XGBoostModelBuilder
  import pytest
label_desc: Use image node_id 1 for calling the TestXgbregressor obj's underlying member method code with example usage: obj.setup_method(method) without return types