code: def binned_array_3bins():
      im_arr = np.random.randint(10, size=(6, 6))
      bins = [-np.inf, 2, 7, np.inf]
      im_arr_bin = np.digitize(im_arr, bins)
  
      return bins, im_arr_bin
  
imports: import numpy
  import pytest
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.colors import ListedColormap
  import earthpy.plot
label_desc: Use image node_id 2 for calling a global function with example usage: binned_array_3bins() and returns: bins,  im_arr_bin