code: def test_bytescale_keywords(self):
      x = np.array([40, 60, 120, 200, 300, 500])
      with suppress_warnings() as sup:
          sup.filter(DeprecationWarning)
          res_lowhigh = misc.bytescale(x, low=10, high=143)
          assert_equal(res_lowhigh, [10, 16, 33, 56, 85, 143])
          res_cmincmax = misc.bytescale(x, cmin=60, cmax=300)
          assert_equal(res_cmincmax, [0, 0, 64, 149, 255, 255])
          assert_equal(
              misc.bytescale(np.array([3, 3, 3]), low=4), [4, 4, 4]
          )
  
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 7 for calling the TestPILUtil obj's underlying member method code with example usage: obj.test_bytescale_keywords() without return types