code: def create_test_dataset(config, batch_size):
      x_test, y_test = linear_dataset(size=NUM_TEST_SAMPLES)
  
      test_dataset = tf.data.Dataset.from_tensor_slices(
          (x_test, y_test)
      )
      test_dataset = test_dataset.batch(batch_size)
  
      return test_dataset
  
file_path: BigDL/python/orca/test/bigdl/orca/learn/ray/ctx/test_tf2_ray_runtime.py
imports: import pytest
  from unittest import TestCase
  import numpy
  import tensorflow
  from bigdl.orca import init_orca_context, stop_orca_context
  from bigdl.orca.learn.tf2 import Estimator
label_desc: Use image node_id 3 for calling a global function with example usage: create_test_dataset(config, batch_size) and returns: test_dataset