code: def get_cp_nn_gp_test_data():
      """Create test data."""
      # pylint: disable=too-many-locals
      file_dir = os.path.dirname(os.path.realpath(__file__))
      test_data_dir = os.path.dirname(file_dir)
      ret = []
      n_train = 200
      n_test = 300
      # Dataset 1
      all_cnns = get_cnns()
      num_train = max(len(all_cnns), n_train)
      num_test = max(len(all_cnns), n_test)
      domain_file_name = (
          test_data_dir + "/" + "test_data/syn_cnn_2/config.json"
      )
      func = syn_cnn_2
      x1_bounds = np.array([[0, 1], [0, 1], [10, 14]])
      x4_elems = [
          4,
          10,
          23,
          45,
          78,
          87.1,
          91.8,
          99,
          75.7,
          28.1,
          3.141593,
      ]
      # Create training set
      X_tr_0 = np.random.choice(all_cnns, num_train)
      X_tr_1 = map_to_bounds(
          np.random.random((num_train, len(x1_bounds))), x1_bounds
      )
      X_tr_2 = [
          [elem1, elem2]
          for (elem1, elem2) in zip(
              np.random.choice(["foo", "bar"], num_train),
              np.random.choice(["foo", "bar"], num_train),
          )
      ]
      X_tr_3 = np.random.choice(x4_elems, num_train)
      X_train = [
          [x0, x1, x2, [x3]]
          for (x0, x1, x2, x3) in zip(X_tr_0, X_tr_1, X_tr_2, X_tr_3)
      ]
      # Create test set
      X_te_0 = np.random.choice(all_cnns, num_test)
      X_te_1 = map_to_bounds(
          np.random.random((num_test, len(x1_bounds))), x1_bounds
      )
      X_te_2 = [
          [elem1, elem2]
          for (elem1, elem2) in zip(
              np.random.choice(["foo", "bar"], num_test),
              np.random.choice(["foo", "bar"], num_test),
          )
      ]
      X_te_3 = np.random.choice(x4_elems, num_test)
      X_test = [
          [x0, x1, x2, [x3]]
          for (x0, x1, x2, x3) in zip(X_te_0, X_te_1, X_te_2, X_te_3)
      ]
      ret.append(
          get_test_dataset(domain_file_name, func, X_train, X_test)
      )
      return ret
  
imports: import os
  import numpy
  import unittest
  from ..gp.unittest_cartesian_product_gp import get_test_dataset, gen_cpmfgp_test_data_from_config_file, CPGPTestCaseDefinitions, CPMFGPTestCaseDefinitions
  from ..nn import nn_examples
  from ..test_data.syn_cnn_2.syn_cnn_2 import syn_cnn_2
  from ..test_data.syn_cnn_2.syn_cnn_2_mf import syn_cnn_2_mf
  from ..utils.base_test_class import BaseTestClass, execute_tests
  from ..utils.general_utils import map_to_bounds
label_desc: Use image node_id 4 for calling a global function with example usage: get_cp_nn_gp_test_data() and returns: ret