code: def gen_cpnnmfgp_test_data(num_tr_data, num_te_data):
      """Generates data on all functions."""
      file_dir = os.path.dirname(os.path.realpath(__file__))
      test_data_dir = os.path.dirname(file_dir)
      test_problems = [
          (
              test_data_dir + "/test_data/syn_cnn_2/config_mf.json",
              syn_cnn_2_mf,
          ),
      ]
      ret = [
          gen_cpmfgp_test_data_from_config_file(
              cfn, rf, num_tr_data, num_te_data
          )
          for cfn, rf in test_problems
      ]
      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 3 for calling a global function with example usage: gen_cpnnmfgp_test_data(num_tr_data, num_te_data) and returns: ret