<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_var_bytes(self, max_size=sys.maxsize) -> bytes: """ Read a variable length of bytes from the stream. Args: max_size (int):
 (Optional) maximum number of bytes to read. Returns: bytes: """

        length = self.read_var_int(max_size)
        return self.read_bytes(length)