code: def get_dfu_devices(*args, **kwargs):
      
      # convert to list for compatibility with newer pyusb
      return list(usb.core.find(*args, find_all=True,
                                custom_match=FilterDFU(), **kwargs))
docs: Returns a list of USB device which are currently in DFU mode.
      Additional filters (like idProduct and idVendor) can be passed in to
      refine the search.