code: def apply_mirror_augment(minibatch):
      mask = np.random.rand(minibatch.shape[0]) < 0.5
      minibatch = np.array(minibatch)
      minibatch[mask] = minibatch[mask, :, :, ::-1]
      return minibatch
  
file_path: insightface/reconstruction/ostec/external/stylegan2/training/misc.py
imports: import os
  import pickle
  import numpy
  import PIL.Image
  import PIL.ImageFont
  import dnnlib
label_desc: Use image node_id 8 for calling a global function with example usage: apply_mirror_augment(minibatch) and returns: minibatch