code: def get_test_dataset(
      domain_file_name, func, X_train, X_test, kernel=None
  ):
      """An internal function to organise what is being returned."""
      domain, orderings = load_cp_domain_from_config_file(
          domain_file_name
      )
      func = get_processed_func_from_raw_func_for_cp_domain(
          func, domain, orderings.index_ordering, orderings.dim_ordering
      )
      Y_train = [func(x) for x in X_train]
      Y_test = [func(x) for x in X_test]
      return Namespace(
          domain_file_name=domain_file_name,
          X_train=X_train,
          Y_train=Y_train,
          X_test=X_test,
          Y_test=Y_test,
          kernel=kernel,
      )
  
imports: from argparse import Namespace
  import numpy
  import os
  from time import time
  from ..exd.cp_domain_utils import load_cp_domain_from_config_file, get_processed_func_from_raw_func_for_cp_domain, get_processed_func_from_raw_func_via_config, load_config_file, sample_from_config_space
  from .None import cartesian_product_gp
  from ..test_data.park1_3.park1_3 import park1_3
  from ..test_data.park1_3.park1_3_mf import park1_3_mf
  from ..test_data.park2_4.park2_4 import park2_4
  from ..test_data.park2_4.park2_4_mf import park2_4_mf
  from ..utils.base_test_class import BaseTestClass, execute_tests
  from ..utils.general_utils import map_to_bounds, get_idxs_from_list_of_lists
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_dataset(domain_file_name, func, X_train, X_test, kernel) and returns: Namespace