code: def test_cmax_higher_than_cmin(byte_arr):
      """Fail gracefully when the cmax is smaller than the cmin."""
  
      with pytest.raises(
          ValueError, match="`cmax` should be larger than `cmin`."
      ):
          es.bytescale(byte_arr, cmin=100, cmax=50)
  
file_path: earthpy/earthpy/tests/test_bytescale.py
imports: import pytest
  import numpy
  import earthpy.spatial
label_desc: Use image node_id 7 for calling a global function with example usage: test_cmax_higher_than_cmin(byte_arr) without return types