HF RL Explorer

Goal: Write a command-line tool that parses a binary file containing a sequence of Tag-Length-Value (TLV)…

Goal: Write a command-line tool that parses a binary file containing a sequence of Tag-Length-Value (TLV)…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - The tool is invoked as: python3 decode tlv.py <input file - The input file is a binary…

The task

Exact I/O contract: - The tool is invoked as: `python3 decode_tlv.py <input_file>` - The input file is a binary file containing zero or more TLV records packed back-to-back. - Each record has: - **Tag**: 1 byte, unsigned integer (0-255). Tag value 0x00 is RESERVED and must cause the tool to exit with an error (see…

Part of ai-and/termgrade-environments.