code: def test_imread_indexed_png():
      # The file `foo3x5x4indexed.png` was created with this array
      # (3x5 is (height)x(width)):
      data = 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,
      )
  
      filename = os.path.join(datapath, "data", "foo3x5x4indexed.png")
      with open(filename, "rb") as f:
          with suppress_warnings() as sup:
              sup.filter(DeprecationWarning)
              im = misc.imread(f)
      assert_array_equal(im, data)
  
imports: from __future__ import division, print_function, absolute_import
  import os.path
  import tempfile
  import shutil
  import numpy
  import glob
  import pytest
  from pytest import raises
  from numpy.testing import assert_equal, assert_allclose, assert_array_equal, assert_
  from scipy._lib._numpy_compat import suppress_warnings
  from scipy import misc
  from numpy.ma.testutils import assert_mask_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_imread_indexed_png() without return types