code: def tta_back_mask_np(img, index):
      print(img.shape)
      trans = {
          0: lambda x: x,
          1: lambda x: np.flip(x, 2),
          2: lambda x: np.flip(x, 1),
          3: lambda x: np.flip(np.flip(x, 2), 1),
          4: lambda x: np.rot90(x, 3, axes=(1, 2)),
          5: lambda x: np.rot90(np.flip(x, 2), 3, axes=(1, 2)),
          6: lambda x: np.rot90(np.flip(x, 1), 3, axes=(1, 2)),
          7: lambda x: np.rot90(
              np.flip(np.flip(x, 2), 1), 3, axes=(1, 2)
          ),
      }
  
      return trans[index](img)
  
imports: import os
  import cv2
  import numpy
  import random
  import torchvision.transforms.functional
  from torchvision.transforms import RandomResizedCrop, ColorJitter, RandomAffine
  import PIL
  from PIL import Image
  import collections
  import settings
label_desc: Use image node_id 4 for calling a global function with example usage: tta_back_mask_np(img, index) and returns: trans