code: def get_train_data_creator():
      def train_data_creator(config):
          return get_dataset(size=1000, config=config)
  
      return train_data_creator
  
imports: import tensorflow
  import numpy
  from unittest import TestCase
  from bigdl.orca.automl.auto_estimator import AutoEstimator
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: get_train_data_creator() and returns: train_data_creator, get_dataset