code: def merge_data(images, size, channels=3):
      h, w = images.shape[1], images.shape[2]
      img = np.zeros((h * size[0], w * size[1], channels))
  
      for idx, image in enumerate(images):
          i = idx % size[1]
          j = idx // size[1]
          img[j * h : j * h + h, i * w : i * w + w, :] = image
  
      return img
  
file_path: DeepNeuro/deepneuro/utilities/visualize.py
imports: import numpy
  import matplotlib.pyplot
  import os
  from collections import OrderedDict
  from deepneuro.utilities.conversion import save_data, read_image_files
  from deepneuro.utilities.util import replace_suffix, nifti_splitext
label_desc: Use image node_id 7 for calling a global function with example usage: merge_data(images, size, channels) and returns: img