def METHOD_NAME(core_fw: bytes) -> None:
    fw = VendorFirmware.parse(core_fw)
    vh_data = fw.vendor_header.build()
    assert vh_data in core_fw
    assert vh_data == VENDOR_HEADER.read_bytes()
    vh = VendorHeader.parse(vh_data)
    assert vh == fw.vendor_header
    vh.verify()
    with pytest.raises(construct.ConstructError):
        VendorFirmware.parse(vh_data)