code: def test_imread_index_png_with_alpha():
      # The file `foo3x5x4indexed.png` was created with this array
      # (3x5 is (height)x(width)):
      dfoo = np.array(
          [
              [
                  [127, 0, 255, 255],
                  [127, 0, 255, 255],
                  [127, 0, 255, 255],
                  [127, 0, 255, 255],
                  [127, 0, 255, 255],
              ],
              [
                  [192, 192, 255, 0],
                  [192, 192, 255, 0],
                  [0, 0, 255, 0],
                  [0, 0, 255, 0],
                  [0, 0, 255, 0],
              ],
              [
                  [0, 31, 255, 255],
                  [0, 31, 255, 255],
                  [0, 31, 255, 255],
                  [0, 31, 255, 255],
                  [0, 31, 255, 255],
              ],
          ],
          dtype=np.uint8,
      )
      img = imread(fetch("data/foo3x5x4indexed.png"))
      assert_array_equal(img, dfoo)
  
imports: import os
  from io import BytesIO
  from tempfile import NamedTemporaryFile
  import numpy
  import pytest
  from PIL import Image
  from skimage._shared import testing
  from skimage._shared._tempfile import temporary_file
  from skimage._shared._warnings import expected_warnings
  from skimage._shared.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal, color_check, fetch, mono_check
  from skimage.metrics import structural_similarity
  from ...None import img_as_float
  from ...color import rgb2lab
  from ..None import imread, imsave, reset_plugins, use_plugin, plugin_order
  from .._plugins.pil_plugin import _palette_is_grayscale, ndarray_to_pil, pil_to_ndarray
label_desc: Use image node_id 8 for calling a global function with example usage: test_imread_index_png_with_alpha() without return types