code: def _quadrature_combine(args):
      args = [np.asarray(arg).reshape(len(arg), -1) for arg in args]
      shapes = [arg.shape for arg in args]
  
      size = np.prod(shapes, 0)[0] * np.sum(shapes, 0)[1]
      if size > 10**9:
          raise MemoryError("Too large sets")
  
      out = args[0]
      for arg in args[1:]:
          out = np.hstack(
              [
                  np.tile(out, len(arg)).reshape(-1, out.shape[1]),
                  np.tile(arg.T, len(out)).reshape(arg.shape[1], -1).T,
              ]
          )
      return out
  
file_path: guildai/guild/_skopt/sampler/grid.py
imports: import numpy
  from .base import InitialPointGenerator
  from ..space import Space
  from sklearn.utils import check_random_state
label_desc: Use image node_id 1 for calling a global function with example usage: _quadrature_combine(args) and returns: out