code: def test_high_val_range():
      """A 16 bit int arr with values at the range end should be scaled properly.
  
      This test explicitly hits the user case of someone providing an array of a
      dtype at the end of it's range of values. Bytescale should not fail.
      """
  
      # The valid range of dtype int16 values is -32768 to 32767
      rgb_bands = np.array([1, 32767, 3, -32768]).astype("int16")
      arr = es.bytescale(rgb_bands)
  
      assert arr.min() == 0
      assert arr.max() == 255
  
file_path: earthpy/earthpy/tests/test_bytescale.py
imports: import pytest
  import numpy
  import earthpy.spatial
label_desc: Use image node_id 2 for calling a global function with example usage: test_high_val_range() without return types