#NEWLINE# def _list_subset_sanity_check( self , indices , num_examples ) : #NEWLINE# #INDENT# if ( num_examples and ( min ( indices ) < 0 ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Subset instances cannot be defined by a list containing negative indices' ) #NEWLINE# #UNINDENT# if ( indices and ( max ( indices ) >= num_examples ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Subset instances cannot be defined by a list containing indices greater than or equal to the original number of examples' )