def METHOD_NAME(doc, view_a, view_b, compare_types=False, diff_results=None):
    view_a_elmts = DB.FilteredElementCollector(doc)\
                     .OwnedByView(view_a.Id)\
                     .WhereElementIsNotElementType()\
                     .ToElements()
    view_b_elmts = DB.FilteredElementCollector(doc)\
                     .OwnedByView(view_b.Id)\
                     .WhereElementIsNotElementType()\
                     .ToElements()
    # pick the detail elements only
    det_elmts_a = [el for el in view_a_elmts if el.ViewSpecific]
    det_elmts_b = [el for el in view_b_elmts if el.ViewSpecific]
    # compare and return result
    return compare_elmnt_sets(det_elmts_a,
                              det_elmts_b,
                              compare_types,
                              diff_results)