code: def get_train_val_data():
      def get_x_y(size):
          x = np.random.rand(size)
          y = x / 2
  
          x = x.reshape((-1, 1))
          y = y.reshape((-1, 1))
          return x, y
  
      data = get_x_y(size=1000)
      validation_data = get_x_y(size=400)
      return data, validation_data
  
file_path: analytics-zoo/pyzoo/test/zoo/orca/automl/autoestimator/test_autoestimator_keras.py
imports: import tensorflow
  import numpy
  from unittest import TestCase
  from zoo.orca.automl.auto_estimator import AutoEstimator
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: get_train_val_data() and returns: data,  validation_data, x,  y