code: def gamma(img, stateimg, gamma):
      height, width, _ = img.shape
  
      lut = [np.uint8()] * 256
  
      if gamma == 0:
          gamma = 0.00000000000000000001
      gamma = 1.0 / gamma
  
      # compute the lut
      for k in range(256):
          lut[k] = np.uint8((pow((k / 255.0), gamma) * 255))
  
      for i in range(height):
          for j in range(width):
              img[i, j, 0] = lut[stateimg[i, j, 0]]
              img[i, j, 1] = lut[stateimg[i, j, 1]]
              img[i, j, 2] = lut[stateimg[i, j, 2]]
  
file_path: pythran/pythran/tests/scikit-image/_colormixer.py
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: gamma(img, stateimg, gamma) without return types