code: def rgb2hsv(rgb):
      # type: (np.ndarray) -> np.ndarray
      """Convert rgb to hsv.
  
      Parameters
      ----------
      rgb: numpy.ndarray, (H, W, 3), np.uint8
          Input rgb image.
  
      Returns
      -------
      hsv: numpy.ndarray, (H, W, 3), np.uint8
          Output hsv image.
  
      """
      hsv = PIL.Image.fromarray(rgb, mode="RGB")
      hsv = hsv.convert("HSV")
      hsv = np.array(hsv)
      return hsv
  
imports: import PIL.Image
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: rgb2hsv(rgb) and returns: hsv