code: def test_bytescale(self):
      x = np.array([0, 1, 2], np.uint8)
      y = np.array([0, 1, 2])
      with suppress_warnings() as sup:
          sup.filter(DeprecationWarning)
          assert_equal(misc.bytescale(x), x)
          assert_equal(misc.bytescale(y), [0, 128, 255])
  
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 6 for calling the TestPILUtil obj's underlying member method code with example usage: obj.test_bytescale() without return types