human
I wrote the below code

    def _get():
        triggers = {}
        if (not (frappe.flags.in_migrate or frappe.flags.in_install)):
            for d in frappe.get_all(u'Feedback    Trigger', dict(enabled=1), [u'name', u'document_type']):
                triggers[d.document_type] = d.name
        return triggers
    feedback_triggers = frappe.cache().get_value(u'feedback_triggers', _get)
    if (doc.doctype in feedback_triggers):
        if doc.flags.in_delete:
            frappe.enqueue(u'frappe.core.doctype.feedback_trigger.feedback_trigger.delete_feedback_request_and_feedback', reference_doctype=doc.doctype, reference_name=doc.name, now=frappe.flags.in_test)
        else:
            frappe.enqueue(u'frappe.core.doctype.feedback_trigger.feedback_trigger.send_feedback_request', trigger=feedback_triggers[doc.doctype], reference_doctype=doc.doctype, reference_name=doc.name, now=frappe.flags.in_test)

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def trigger_feedback_request(doc, method):