code: def imssave(imgs, img_path):
      """
      imgs: list, N images of size WxHxC
      """
      img_name, ext = os.path.splitext(os.path.basename(img_path))
  
      for i, img in enumerate(imgs):
          if img.ndim == 3:
              img = img[:, :, [2, 1, 0]]
          new_path = os.path.join(
              os.path.dirname(img_path),
              img_name + str("_s{:04d}".format(i)) + ".png",
          )
          cv2.imwrite(new_path, img)
  
imports: import os
  import math
  import random
  import numpy
  import torch
  import cv2
  from torchvision.utils import make_grid
  from datetime import datetime
label_desc: Use image node_id 8 for calling a global function with example usage: imssave(imgs, img_path) without return types