code: def get_data():
      def get_x_y(size):
          x = np.random.randn(size, 2)
          y = np.random.randn(size)
          return x, y
  
      train_x, train_y = get_x_y(1000)
      val_x, val_y = get_x_y(400)
      data = (train_x, train_y)
      validation_data = (val_x, val_y)
      return data, validation_data
  
file_path: BigDL/python/orca/test/bigdl/orca/automl/xgboost/test_auto_xgb.py
imports: import pytest
  from bigdl.orca.automl.xgboost import AutoXGBRegressor
  import numpy
  from unittest import TestCase
  from bigdl.orca.automl import hp
label_desc: Use image node_id 1 for calling a global function with example usage: get_data() and returns: data,  validation_data, x,  y