code: def gen_cpmfgp_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/park1_3/config_mf.json",
              park1_3_mf,
          ),
          (
              test_data_dir + "/test_data/park2_4/config_mf.json",
              park2_4_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: 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 4 for calling a global function with example usage: gen_cpmfgp_test_data(num_tr_data, num_te_data) and returns: ret