def METHOD_NAME(gst_accounts):
    return frappe.get_all(
        "GL Entry",
        filters={
            "account": ("in", gst_accounts),
            "company_gstin": ("is", "not set"),
            "is_cancelled": 0,
        },
        pluck="voucher_type",
        distinct=True,
    )