docs: def get_npimage(transparent=False, y_origin="top"):
      """ Returns a WxHx[3-4] numpy array representing the RGB picture.
  
      If `transparent` is True the image is WxHx4 and represents a RGBA picture,
      i.e. array[i,j] is the [r,g,b,a] value of the pixel at position [i,j].
      If `transparent` is false, a RGB array is returned.
  
      Parameter y_origin ("top" or "bottom") decides whether point (0,0) lies in
      the top-left or bottom-left corner of the screen.
      """
      image_surface = render_record_surface()
      img = 0 + np.frombuffer(image_surface.get_data(), np.uint8)
      img.shape = (HEIGHT, WIDTH, 4)
      img = img[:, :, [2, 1, 0, 3]]
      if y_origin == "bottom":
          img = img[::-1]
      return img if transparent else img[:, :, : 3]