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),
          }
      )
  
      ft = IdentityTransformer(
          feature_cols=feature_cols, target_col=target_col
      )
  
      self.x, self.y = ft.transform(train_df)
      self.val_x, self.val_y = ft.transform(val_df)
  
file_path: analytics-zoo/pyzoo/test/zoo/orca/automl/xgboost/test_xgbregressor.py
imports: from test.zoo.pipeline.utils.test_utils import ZooTestCase
  import numpy
  import pandas
  import os
  from numpy.testing import assert_array_almost_equal
  from zoo.orca.automl.xgboost.XGBoost import XGBoost, XGBoostModelBuilder
  from zoo.chronos.autots.deprecated.feature.identity_transformer import IdentityTransformer
  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