code: def _random_permute_matrix(h, random_state=None):
      rng = check_random_state(random_state)
      h_rand_perm = np.zeros_like(h)
      samples, n = h.shape
      for j in range(n):
          order = rng.permutation(range(samples))
          h_rand_perm[:, j] = h[order, j]
      return h_rand_perm
  
file_path: guildai/guild/_skopt/sampler/lhs.py
imports: import numpy
  from sklearn.utils import check_random_state
  from scipy import spatial
  from ..space import Space, Categorical
  from .base import InitialPointGenerator
label_desc: Use image node_id 1 for calling a global function with example usage: _random_permute_matrix(h, random_state) and returns: h_rand_perm