code: def test_regressor_basic_with_params(self, reg_data: RegData) -> None:
      regressor = SparkXGBRegressor(**reg_data.reg_params)
      model = regressor.fit(reg_data.reg_df_train)
      pred_result = model.transform(reg_data.reg_df_test).collect()
      for row in pred_result:
          assert np.isclose(
              row.prediction,
              row.expected_prediction_with_params,
              atol=1e-3,
          )
  
imports: import json
  import logging
  import os
  import random
  import tempfile
  import uuid
  from collections import namedtuple
  import numpy
  import pytest
  import xgboost
  from xgboost import testing
  from xgboost.callback import LearningRateScheduler
  from typing import Generator
  from pyspark.ml.linalg import Vectors
  from pyspark.sql import SparkSession
  from xgboost.spark import SparkXGBClassifier, SparkXGBRegressor
  from xgboost.spark.utils import _get_max_num_concurrent_tasks
  from .utils import SparkLocalClusterTestCase
label_desc: Use image node_id 1 for calling the TestPySparkLocalCluster obj's underlying member method code with example usage: obj.test_regressor_basic_with_params(reg_data) without return types