docs: def int_out_of_bounds(self, index, axis=0):
          """ examples if index is out of local processing bounds
  
          function is used to perform examples for index of type integer
          :param index: global index to examples as type int
          :param axis: current axis to examples
          :return: return input or raise error
          """
          #if index >= self._global_shape[axis]:
          if index > self._global_shape[axis]:
              raise IndexError('index is larger than the upper bound')
  
          # wrap around index if negative like in python
          if index < 0:
              index += self._global_shape[axis]
              #warnings.warn('warp around may occur')
  
          # check for invalid wrap around
          if index < 0:
              raise IndexError('index is smaller than the lower bound')
  
          return index