Write a command-line tool tlv2json that reads a binary file containing a sequence of Tag-Length-Value…
Write a command-line tool tlv2json that reads a binary file containing a sequence of Tag-Length-Value…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format (binary file): - The file consists of zero or more…
The task
**Input format (binary file):** - The file consists of zero or more TLV records concatenated. - Each record: `Tag` (1 byte, unsigned integer 0-255) | `Length` (variable-length unsigned integer, see below) | `Value` (exactly `Length` bytes). - The variable-length integer encoding: - Each byte's lower 7 bits carry…