def METHOD_NAME(serial, pubkey):
    """Version of bootloader."""
    from pynitrokey.fido2 import find
    p = find(serial)
    if not p.is_bootloader():
        local_print("Not in Bootloader Mode!")
        return
    else:
        local_print("Detected Bootloader Mode")
    local_print("Version: " + ".".join(map(str, p.METHOD_NAME())))
    from binascii import b2a_hex
    from hashlib import sha256
    if pubkey:
        bpub = p.boot_pubkey()
        bpub = b2a_hex(bpub)
        local_print(f"Bootloader public key: \t\t{bpub}")
        s = sha256()
        s.update(bpub)
        bpubh = b2a_hex(s.digest())
        local_print(f"Bootloader public key sha256: \t{bpubh}")