#NEWLINE# def _list_request_sanity_check( self , indices , num_examples ) : #NEWLINE# #INDENT# if ( len ( num_examples ) == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'list-based requests cannot be empty (this would produce an empty return value)' ) #NEWLINE# #UNINDENT# if any ( ( ( index < 0 ) for index in indices ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Subset does not support list-based requests with negative indices' ) #NEWLINE# #UNINDENT# if ( max ( indices ) >= num_examples ) : #NEWLINE# #INDENT# raise ValueError ( 'list-based requests cannot contain indices greater than or equal to the number of examples the subset spans' )