def _validate_filter_fields(self, filter_by):
for filter_field in filter_by:<EOL><INDENT>if (<EOL>filter_field not in self.RESPONSE_FIELD_MAP<EOL>or not self.RESPONSE_FIELD_MAP[filter_field].is_filter<EOL>):<EOL><INDENT>raise InvalidFilterFieldException(<EOL>'<STR_LIT>'.format(filter_field)<EOL>)<EOL><DEDENT><DEDENT>
:param filter_by: dict
:raises: pybomb.exceptions.InvalidFilterFieldException