code: def rgb_2_hsv(RGB, HSV):
      R, G, B = RGB
  
      if R > 255:
          R = 255
      elif R < 0:
          R = 0
  
      if G > 255:
          G = 255
      elif G < 0:
          G = 0
  
      if B > 255:
          B = 255
      elif B < 0:
          B = 0
  
      if R < G:
          MIN = R
          MAX = G
      else:
          MIN = G
          MAX = R
  
      if B < MIN:
          MIN = B
      elif B > MAX:
          MAX = B
      else:
          pass
  
      V = MAX / 255.0
  
      if MAX == MIN:
          H = 0.0
      elif MAX == R:
          H = (60 * (G - B) / (MAX - MIN) + 360) % 360
      elif MAX == G:
          H = 60 * (B - R) / (MAX - MIN) + 120
      else:
          H = 60 * (R - G) / (MAX - MIN) + 240
  
      if MAX == 0:
          S = 0
      else:
          S = 1 - MIN / MAX
  
      HSV[0] = H
      HSV[1] = S
      HSV[2] = V
  
file_path: pythran/pythran/tests/scikit-image/_colormixer.py
imports: import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: rgb_2_hsv(RGB, HSV) without return types