code: def to_grid(rows, rows_kps):
      if rows_kps is None:
          rows = [np.hstack(list(row)) for row in rows]
          return np.vstack(rows)
      else:
          rows_rendered = []
          for row, row_kps in zip(rows, rows_kps):
              row_with_kps = []
              for i in range(len(row)):
                  img = row[i]
                  img_kps = row_kps[i].draw_on_image(img)
                  row_with_kps.append(img_kps)
              rows_rendered.append(np.hstack(row_with_kps))
  
          return np.vstack(rows_rendered)
  
file_path: imgaug/checks/check_some_of.py
imports: from __future__ import print_function, division
  import cv2
  import numpy
  from skimage import data
  import imgaug
  from imgaug import augmenters
label_desc: Use image node_id 2 for calling a global function with example usage: to_grid(rows, rows_kps) and returns: np, np