code: def pack_args(args: Iterator[Tuple[bytes, bytes]]) -> bytes:
      result = [
          struct.pack("I", len(key))
          + key
          + struct.pack("I", len(val))
          + val
          for key, val in args
      ]
      return b"".join(result)
  
imports: import importlib
  import struct
  import json
  from typing import Iterator, Tuple, Union
  import aim.ext.transport.proto.remote_tracking_pb2
  from aim.storage.object import CustomObject
  from aim.storage.types import BLOB
label_desc: Use image node_id 1 for calling a global function with example usage: pack_args(args) and returns: bytes