def METHOD_NAME():
    # reconnect and actually flash it...
    # fail after 5 attempts
    exc = None
    for _ in range(5):
        try:
            client = find(serial)
            client.use_hid()
            client.program_file(fw_fn)
            break
        except Exception as e:
            time.sleep(0.5)
            exc = e
            # todo log exception info from each failed iteration
    else:
        local_critical("problem flashing firmware:", exc)