code: def test_retrieve_msg_predict_binary(self, socket_patches):
      expected = [
          {
              "requestId": b"request_id",
              "headers": [],
              "parameters": [
                  {
                      "name": "input_name",
                      "contentType": "",
                      "value": b"binary",
                  }
              ],
          }
      ]
  
      socket_patches.socket.recv.side_effect = [
          b"I",
          b"\x00\x00\x00\x0a",
          b"request_id",
          b"\xFF\xFF\xFF\xFF",
          b"\x00\x00\x00\x0a",
          b"input_name",
          b"\x00\x00\x00\x00",
          b"\x00\x00\x00\x06",
          b"binary",
          b"\xFF\xFF\xFF\xFF",  # end of parameters
          b"\xFF\xFF\xFF\xFF",  # end of batch
      ]
      cmd, ret = codec.retrieve_msg(socket_patches.socket)
  
      assert cmd == b"I"
      assert ret == expected
  
file_path: serve/ts/tests/unit_tests/test_otf_codec_protocol.py
imports: import struct
  from builtins import bytes
  from collections import namedtuple
  import pytest
  import ts.protocol.otf_message_handler
label_desc: Use image node_id 6 for calling the TestOtfCodecHandler obj's underlying member method code with example usage: obj.test_retrieve_msg_predict_binary(socket_patches) without return types