code: def color_jitter_video_ssl(
      frames,
      bri_con_sat=[0.4] * 3,
      hue=0.1,
      p_convert_gray=0.0,
      moco_v2_aug=False,
      gaussan_sigma_min=[0.0, 0.1],
      gaussan_sigma_max=[0.0, 2.0],
  ):
      # T H W C -> C T H W.
      frames = frames.permute(3, 0, 1, 2)
  
      if moco_v2_aug:
          color_jitter = tv.transforms.Compose(
              [
                  tv.transforms.ToPILImage(),
                  tv.transforms.RandomApply(
                      [
                          tv.transforms.ColorJitter(
                              bri_con_sat[0],
                              bri_con_sat[1],
                              bri_con_sat[2],
                              hue,
                          )
                      ],
                      p=0.8,
                  ),
                  tv.transforms.RandomGrayscale(p=p_convert_gray),
                  tv.transforms.RandomApply(
                      [GaussianBlur([0.1, 2.0])], p=0.5
                  ),
                  tv.transforms.ToTensor(),
              ]
          )
      else:
          color_jitter = tv.transforms.Compose(
              [
                  tv.transforms.ToPILImage(),
                  tv.transforms.RandomGrayscale(p=p_convert_gray),
                  tv.transforms.ColorJitter(
                      bri_con_sat[0],
                      bri_con_sat[1],
                      bri_con_sat[2],
                      hue,
                  ),
                  tv.transforms.ToTensor(),
              ]
          )
  
      c, t, h, w = frames.shape
      frames = frames.view(c, t * h, w)
      frames = color_jitter(frames)
      frames = frames.view(c, t, h, w)
      # C T H W ->  T H W C.
      frames = frames.permute(1, 2, 3, 0)
  
      return frames
  
imports: import logging
  import math
  import numpy
  import random
  import torch
  import torchvision
  import torchvision.transforms.functional
  from PIL import Image, ImageFilter
  from scipy.ndimage import gaussian_filter
  from torchvision import transforms
  from .rand_augment import rand_augment_transform
  from .random_erasing import RandomErasing
label_desc: Use image node_id 23 for calling a global function with example usage: color_jitter_video_ssl(frames, bri_con_sat, hue, p_convert_gray, moco_v2_aug, gaussan_sigma_min, gaussan_sigma_max) and returns: frames