code: def adjust_hue_torchvision(img, factor):
      if is_grayscale_image(img):
          return img
  
      if factor == 0:
          return img
  
      if img.dtype == np.uint8:
          return _adjust_hue_torchvision_uint8(img, factor)
  
      img = cv2.cvtColor(img, cv2.COLOR_RGB2HSV)
      img[..., 0] = np.mod(img[..., 0] + factor * 360, 360)
      return cv2.cvtColor(img, cv2.COLOR_HSV2RGB)
  
imports: from __future__ import division
  from typing import Optional, Sequence, Union
  from warnings import warn
  import cv2
  import numpy
  import skimage
  from albumentations import random_utils
  from albumentations.augmentations.utils import MAX_VALUES_BY_DTYPE, _maybe_process_in_chunks, clip, clipped, ensure_contiguous, is_grayscale_image, is_rgb_image, non_rgb_warning, preserve_channel_dim, preserve_shape
label_desc: Use image node_id 55 for calling a global function with example usage: adjust_hue_torchvision(img, factor) and returns: cv2, img, img, _adjust_hue_torchvision_uint8