def validate_filters_or_records(filters_or_records):
<EOL>if not filters_or_records:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if not isinstance(filters_or_records[<NUM_LIT:0>], (Record, tuple)):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>_type = type(filters_or_records[<NUM_LIT:0>])<EOL>for item in filters_or_records:<EOL><INDENT>if not isinstance(item, _type):<EOL><INDENT>raise ValueError("<STR_LIT>".format(item))<EOL><DEDENT><DEDENT>return _type<EOL>
Validation for filters_or_records variable from bulk_modify and bulk_delete