code: def test_get_synthetic_preds(synthetic_data_func):
      preds_dict = get_synthetic_preds(
          synthetic_data_func=synthetic_data_func,
          n=1000,
          estimators={
              "S Learner (LR)": LRSRegressor(),
              "T Learner (XGB)": XGBTRegressor(),
          },
      )
  
      assert (
          preds_dict["S Learner (LR)"].shape[0]
          == preds_dict["T Learner (XGB)"].shape[0]
      )
  
file_path: causalml/tests/test_datasets.py
imports: import pytest
  from causalml.dataset import simulate_nuisance_and_easy_treatment, simulate_hidden_confounder, simulate_randomized_trial
  from causalml.dataset import get_synthetic_preds, get_synthetic_summary, get_synthetic_auuc
  from causalml.dataset import get_synthetic_preds_holdout, get_synthetic_summary_holdout
  from causalml.inference.meta import LRSRegressor, XGBTRegressor
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_synthetic_preds(synthetic_data_func) without return types