code: def _get_hartmann_data(domain_dim):
      """Returns A and P for the 3D hartmann function."""
      # pylint: disable=bad-whitespace
      if domain_dim == 3:  # 3D hartmann function
          A = np.array(
              [
                  [3.0, 10, 30],
                  [0.1, 10, 35],
                  [3.0, 10, 30],
                  [0.1, 10, 35],
              ],
              dtype=np.float64,
          )
          P = 1e-4 * np.array(
              [
                  [3689, 1170, 2673],
                  [4699, 4387, 7470],
                  [1091, 8732, 5547],
                  [381, 5743, 8828],
              ],
              dtype=np.float64,
          )
          alpha = np.array([1.0, 1.2, 3.0, 3.2])
          domain = [[0, 1]] * 3
          opt_pt = np.array([0.114614, 0.555649, 0.852547])
          max_val = 3.86278
      elif domain_dim == 6:  # 6D hartmann function
          A = np.array(
              [
                  [10, 3, 17, 3.5, 1.7, 8],
                  [0.05, 10, 17, 0.1, 8, 14],
                  [3, 3.5, 1.7, 10, 17, 8],
                  [17, 8, 0.05, 10, 0.1, 14],
              ],
              dtype=np.float64,
          )
          P = 1e-4 * np.array(
              [
                  [1312, 1696, 5569, 124, 8283, 5886],
                  [2329, 4135, 8307, 3736, 1004, 9991],
                  [2348, 1451, 3522, 2883, 3047, 6650],
                  [4047, 8828, 8732, 5743, 1091, 381],
              ],
              dtype=np.float64,
          )
          alpha = np.array([1.0, 1.2, 3.0, 3.2])
          domain = [[0, 1]] * 6
          opt_pt = np.array(
              [0.20169, 0.150011, 0.476874, 0.275332, 0.311652, 0.6573]
          )
          max_val = 3.322368
      else:
          raise NotImplementedError(
              "Only implemented in 3 and 6 dimensions."
          )
      return A, P, alpha, opt_pt, domain, max_val
  
imports: from __future__ import division
  import numpy
  from .general_utils import map_to_cube
  from ..exd.experiment_caller import EuclideanFunctionCaller
label_desc: Use image node_id 2 for calling a global function with example usage: _get_hartmann_data(domain_dim) and returns: A,  P,  alpha,  opt_pt,  domain,  max_val