code: def offset_limit(func):
      
  
      def func_wrapper(self, start, stop):
          offset = start
          limit = stop - start
          return func(self, offset, limit)
  
      return func_wrapper
docs: Decorator that converts python slicing to offset and limit