code: def augment_imgs(img_list, hflip=True, rot=True):
      # horizontal flip OR rotate
      hflip = hflip and random.random() < 0.5
      vflip = rot and random.random() < 0.5
      rot90 = rot and random.random() < 0.5
  
      def _augment(img):
          if hflip:
              img = img[:, ::-1, :]
          if vflip:
              img = img[::-1, :, :]
          if rot90:
              img = img.transpose(1, 0, 2)
          return img
  
      return [_augment(img) for img in img_list]
  
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 36 for calling a global function with example usage: augment_imgs(img_list, hflip, rot) and returns: unknown, img