def slice(self, order_by='<STR_LIT>', n=None):
if n is not None and n < <NUM_LIT:0>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>queryset = self.order_by(order_by)<EOL>if n is None:<EOL><INDENT>return queryset[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return queryset[<NUM_LIT:0>:n]<EOL><DEDENT>
return n objects according to specified ordering