def METHOD_NAME(filters):
	from_date, to_date = filters.get("from_date"), filters.get("to_date")
	if not from_date and to_date:
		frappe.throw(_("From and To Dates are required."))
	elif date_diff(to_date, from_date) < 0:
		frappe.throw(_("To Date cannot be before From Date."))