code: def is_rising(bins) -> bool:
      
      # TODO: Optimize for numpy bins
      bins = make_bin_array(bins)
      if np.any(bins[:, 0] >= bins[:, 1]):
          return False
      if np.any(bins[1:, 0] < bins[:-1, 1]):
          return False
      return True
docs: Check whether the bins are in raising order.
  
      Does not check if the bins are consecutive.
  
      Parameters
      ----------
      bins: array_like