HF RL Explorer

Write a command-line tool at /app/decode tlv (Python script, executable) that reads a binary file containing…

Write a command-line tool at /app/decode tlv (Python script, executable) that reads a binary file containing…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary file): - The file consists of zero or more TLV records concatenated back-to-back. -…

The task

**Input format (binary file):** - The file consists of zero or more TLV records concatenated back-to-back. - Each record: - TAG: 2 bytes, big-endian unsigned integer (0-65535). - LENGTH: variable-length integer (varint) encoded as follows: - Each byte uses 7 bits for data (least significant bits first) and the MSB…

Part of ai-and/termgrade-environments.