code: def _retrieve_load_msg(conn):
      """
      MSG Frame Format:
  
      | cmd value |
      | int model-name length | model-name value |
      | int model-path length | model-path value |
      | int batch-size length |
      | int handler length | handler value |
      | int gpu id |
      | bool limitMaxImagePixels |
  
      :param conn:
      :return:
      """
      msg = {}
      length = _retrieve_int(conn)
      msg["modelName"] = _retrieve_buffer(conn, length)
      length = _retrieve_int(conn)
      msg["modelPath"] = _retrieve_buffer(conn, length)
      msg["batchSize"] = _retrieve_int(conn)
      length = _retrieve_int(conn)
      msg["handler"] = _retrieve_buffer(conn, length)
      gpu_id = _retrieve_int(conn)
      if gpu_id >= 0:
          msg["gpu"] = gpu_id
  
      length = _retrieve_int(conn)
      msg["envelope"] = _retrieve_buffer(conn, length)
      msg["limitMaxImagePixels"] = _retrieve_bool(conn)
  
      return msg
  
imports: import io
  import json
  import logging
  import os
  import struct
  import sys
  import time
  from builtins import bytearray, bytes
  import torch
  from ts.utils.util import deprecated
label_desc: Use image node_id 8 for calling a global function with example usage: _retrieve_load_msg(conn) and returns: msg