Dolos: Add HWID parsing logic HWIDv3 used in the lab

This adds a tool for parsing HWIDv3. It will verify the
result is correctly parsed and allows extracting the
bitfields in the HWID to obtain battery indexes.

Testing was conducted using generated fake serials
and comparing against the HWID API results and then
mapping the generated serial to a fake model again.

TEST=pytest
BUG=b:395921759

Change-Id: Id27eba7bc933f546dad223d04c1156f2844def72
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dolos/+/6237067
Commit-Queue: Brian Nemec <bnemec@google.com>
Tested-by: Brian Nemec <bnemec@google.com>
Reviewed-by: Ɓukasz Hajec <hajec@google.com>
4 files changed