code: def histogram(data, bin_width):
      lower_bound, upper_bound = min(data), max(data)
      out_data = [0] * (1 + bin_width)
      for i in data:
          out_data[
              int(
                  bin_width
                  * (i - lower_bound)
                  / (upper_bound - lower_bound)
              )
          ] += 1
      out_data[-2] += out_data[-1]
      out_data.pop()
      return out_data
  
label_desc: Use image node_id 1 for calling a global function with example usage: histogram(data, bin_width) and returns: out_data